what is the difference between normal variables and pointer
variables..............
Answer Posted / sree
normal variable stores a value of the given datatype where
as the pointer variable stores the address of a variable.
for example
int n=10;
int *p;
p=&n;
here p is a pointer variable and n is a normal
variable.p stores the address of n where as n stores an
integer value.
*p prints the value of n,p prints the address
of n.
| Is This Answer Correct ? | 117 Yes | 19 No |
Post New Answer View All Answers
What does the c preprocessor do?
Explain how do you declare an array that will hold more than 64kb of data?
What will the code below print when it is executed? int x = 3, y = 4; if (x = 4) y = 5; else y = 2; printf ("x=%d, y=%d ",x,y);
What is memcpy() function?
what is use of malloc and calloc?
What are compound statements?
a=10;b= 5;c=3;d=3; if(a printf(%d %d %d %d a,b,c,d) else printf("%d %d %d %d a,b,c,d);
Explain how are 16- and 32-bit numbers stored?
List the difference between a "copy constructor" and a "assignment operator"?
Differentiate between full, complete & perfect binary trees.
What is the use of static variable in c?
Write a program to swap two numbers without using third variable?
Can a void pointer point to a function?
swap 2 numbers without using third variable?
Once I have used freopen, how can I get the original stdout (or stdin) back?