difference between ordinary variable and pointer in C?
Answers were Sorted based on User's Feedback
Answer / guest
ordinary variable holds value and pointer variable holds
the address
Is This Answer Correct ? | 21 Yes | 1 No |
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 |
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
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.
What would the following code segment printint k = 8;docout << "k = " << k << " ";while k++ < 5; a) 13 b) 5 c) 8 d) pointers
main() { int i = -3,j=2,k=0,m; m= ++i || ++j && ++k; printf("%d%d%d",i,j,k,m); }
Write a C program to print 1 2 3 ... 100 without using loops?
Write a code of a general series where the next element is the sum of last k terms.
How can I find the day of the week given the date?
What is indirection? How many levels of pointers can you have?
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; }
What is a pointer?
write a program to generate 1st n fibonacci prime number
write a 'c' program to sum the number of integer values