main()

{

char *p;

int *q;

long *r;

p=q=r=0;

p++;

q++;

r++;

printf("%p...%p...%p",p,q,r);

}



main() { char *p; int *q; long *r; p=q=r=0; ..

Answer / susie

Answer :

0001...0002...0004

Explanation:

++ operator when applied to pointers increments address
according to their corresponding data-types.

Is This Answer Correct ?    8 Yes 3 No

Post New Answer

More C Code Interview Questions

plz send me all data structure related programs

2 Answers  


why java is platform independent?

13 Answers   Wipro,


programming in c lanugaue programm will errror error with two header file one as stdio.h and other one is conio.h

1 Answers  


There are 21 people in a room. They have to form groups of 3 people each. How many combinations are possible? Write a C program to print the same.

1 Answers   TCS,


main() { unsigned int i=65000; while(i++!=0); printf("%d",i); }

1 Answers  






In the following pgm add a stmt in the function fun such that the address of 'a' gets stored in 'j'. main(){ int * j; void fun(int **); fun(&j); } void fun(int **k) { int a =0; /* add a stmt here*/ }

1 Answers  


main() { char *p; printf("%d %d ",sizeof(*p),sizeof(p)); }

6 Answers  


main() { int i; clrscr(); printf("%d", &i)+1; scanf("%d", i)-1; } a. Runtime error. b. Runtime error. Access violation. c. Compile error. Illegal syntax d. None of the above

1 Answers   HCL,


print numbers till we want without using loops or condition statements like specifically(for,do while, while swiches, if etc)!

11 Answers   Wipro,


How can u say that a given point is in a triangle? 1. with the co-ordinates of the 3 vertices specified. 2. with only the co-ordinates of the top vertex given.

1 Answers  


Write a program using one dimensional array to assign values and then display it on the screen. Use the formula a[i]=i*10 to assign value to an element.

1 Answers   Samar State University,


Link list in reverse order.

8 Answers   NetApp,


Categories