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

Switch (i) i=1; case 1 i++; case 2 ++i; break; case 3 --i; Output of i after executing the program

5 Answers   Mascot,


Is it fine to write void main () or main () in c?

0 Answers  


Why array starts with index 0

2 Answers  


define switch statement?

6 Answers   CTS,


praagnovation

0 Answers  


What is an expression?

0 Answers  


What is #error and use of it?

0 Answers  


void main(int argc,char *argv[],char *env[]) { int i; for(i=1;i<argc;i++) printf("%s",env[i]); }

3 Answers  


how does the for loop work actually..suppose for the following program how it ll work plz explain to me for(i=5;i>=0;i--) prinf(i--);

19 Answers   RMSI,


how can we use static and extern?and where can we use this?

3 Answers   Excel,


What are different types of variables in c?

0 Answers  


void swap(int a,int b) { a=a+b; b=a-b; a=a-b; } in this code always gives the same result for all case

9 Answers   Accenture, TCS,


Categories