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

To print the pattern 1 2 3 4 5 10 17 18 19 6 15 24 25 20 7 14 23 22 21 8 13 12 11 10 9

0 Answers   HCL,


Write a C program to get the desired output. 1 1 2 1 1 3 3 1 1 4 6 4 1 1 5 10 10 5 1 . . . 1 n..............n 1 Note: n is a positive integer entered by the user.

4 Answers  


What would the following code segment printint k = 8;docout << "k = " << k << " ";while k++ < 5; a) 13 b) 5 c) 8 d) pointers

0 Answers  


main() { int i = -3,j=2,k=0,m; m= ++i || ++j && ++k; printf("%d%d%d",i,j,k,m); }

7 Answers   HCL,


Write a C program to print 1 2 3 ... 100 without using loops?

15 Answers   Hindalco,


Write a code of a general series where the next element is the sum of last k terms.

0 Answers   Aspiring Minds,


How can I find the day of the week given the date?

0 Answers  


What is indirection? How many levels of pointers can you have?

0 Answers   Aspire, Infogain,


what is the purpose of the following code, and is there any problem with the code? void fn(long* p1, long* p2) { register int x = *p1; register int y = *p2; x ^= y; y ^= x; x ^= y; *p1 = x; *p2 = y; }

1 Answers   Google,


What is a pointer?

1 Answers   ADP, IFFCO,


write a program to generate 1st n fibonacci prime number

12 Answers  


write a 'c' program to sum the number of integer values

8 Answers  


Categories