Author Archive

What is a global variable?

Tuesday, February 14th, 2012  »  Posted By  »  Total 0 Comment

variables that are known throughout the program and may be used by any piece of code is called a global variable. Also, they will hold their value throughout the program’s execution. Global variables can be created by declaring them outside of any function. Global variables are helpful when many functions in the program use the [...]

What is a local variable?

Tuesday, February 14th, 2012  »  Posted By  »  Total 0 Comment

Variables that are declared inside a function are called local variables. Local variables can be used only by statements that are inside the block in which the variables are declared. In other words, local variables are not known outside their own code block. A block of code begins with an opening curly brace and terminates [...]

What is the use of sizeof() operator in C?

Tuesday, February 7th, 2012  »  Posted By  »  Total 0 Comment

The sizeof operator returns the size in bytes of its operand. Operand may be a variable or data type.

what is Void Pointer?

Thursday, January 19th, 2012  »  Posted By  »  Total 0 Comment

Void pointer or generic pointer is a special type of pointer that can be pointed at objects of any data type. A void pointer is declared like a normal pointer, using the void keyword as the pointer’s type. Pointers defined using specific data type cannot hold the address of the some other type of variable [...]

What is dangling pointer?

Tuesday, January 17th, 2012  »  Posted By  »  Total 0 Comment

Dangling pointers and wild pointers in computer programming are pointers that do not point to a valid object of the appropriate type. In many applications memory is allocated for holding data objects. After using these objects, tha aplication will de-allocate this memory so that the memory can be re-used. In some cases the alications may [...]

Program to calculate a simple interest

Monday, October 17th, 2011  »  Posted By  »  Total 2 Comments

Here is the program to calculate a simple interest

Program to calculates the area of a rectangle

Monday, October 17th, 2011  »  Posted By  »  Total 0 Comment

Here is the program to calculates the area of a rectangle,

Program to accept five numbers and display the sum of even numbers and product of odd numbers

Friday, October 14th, 2011  »  Posted By  »  Total 3 Comments

Here is the program which accepts five numbers and display the sum of even numbers and product of odd numbers.

Program to check the occurence of digit in a given number

Friday, October 14th, 2011  »  Posted By  »  Total 3 Comments

This program checks the occurrence of digit 5 in a given number.

Program to find out the sum of first n numbers

Friday, October 14th, 2011  »  Posted By  »  Total 0 Comment

Here is the program to find out the sum of first n numbers.

Question and Answer
C/C++ Unix & Linux Wordpress
Source codes
C C++ Java

Free email signup