difference between ordinary variable and pointer in C?

Answers were Sorted based on User's Feedback



difference between ordinary variable and pointer in C?..

Answer / guest

ordinary variable holds value and pointer variable holds
the address

Is This Answer Correct ?    21 Yes 1 No

difference between ordinary variable and pointer in C?..

Answer / syed

an ordinary variable is like a container it can hold any
value and we can change the value of ordinary variable at
time throughout the program.
a pointer is a variable that stores the address of another
variable ..

Is This Answer Correct ?    13 Yes 2 No

Post New Answer

More C Interview Questions

What is size of union in c?

0 Answers  


Difference between goto, long jmp() and setjmp()?

0 Answers   EXL,


what is mean by Garbage collection ? Please answer me. Advance thanks.

4 Answers   Excel,


what wud be the output? main() { char *str[]={ "MANISH" "KUMAR" "CHOUDHARY" }; printf("\nstring1=%s",str[0]); printf("\nstring2=%s",str[1]); printf("\nstring3=%s",str[2]); a)string1=Manish string2=Kumar string3=Choudhary b)string1=Manish string2=Manish string3=Manish c)string1=Manish Kumar Choudhary string2=(null) string3=(null) d)Compiler error

9 Answers   Infosys,


What is the purpose of sprintf?

0 Answers  






What is the difference between specifying a constant variable like with constant keyword and #define it? i.e what is the difference between CONSTANT FLOAT A=1.25 and #define A 1.25

0 Answers  


Write a program which take a integer from user and tell whether the given variable is squar of some number or not. eg: is this number is 1,4,9,16... or not

9 Answers   Alcatel,


#define FALSE -1 #define TRUE 1 #define NULL 0 main() { if(NULL) puts("NULL"); else if(FALSE) puts("TRUE"); else puts("FALSE"); }

1 Answers  


What is meant by high-order and low-order bytes?

0 Answers  


what is the Output? int a=4 b=3; printf("%d%d%d%d%d%d",a++,++a,a++,a++,++a,a++); printf("%d%d%d%d%d%d",b--,b--,--b,b--,--b,--b);

10 Answers   IBM,


How to find the given no is odd or even without checking of any condition and loops. (Hint: Using array)

4 Answers  


write a program in c language for the multiplication of two matrices using pointers?

8 Answers   Ignou,


Categories