main()

{

char *p = “ayqm”;

char c;

c = ++*p++;

printf(“%c”,c);

}



main() { char *p = “ayqm”; char c; c = ++*p++; prin..

Answer / susie

Answer :

b

Explanation:

There is no difference between the expression ++*(p++) and
++*p++. Parenthesis just works as a visual clue for the
reader to see which expression is first evaluated.

Is This Answer Correct ?    5 Yes 1 No

Post New Answer

More C Code Interview Questions

Program to find the largest sum of contiguous integers in the array. O(n)

11 Answers  


create a C-code that will display the total fare of a passenger of a taxi if the driver press enter,the timer will stop. Every 10 counts is 2 pesos. Initial value is 25.00

0 Answers   Microsoft,


main() { main(); }

1 Answers  


why array index always strats wuth zero?

2 Answers  


int DIM(int array[]) { return sizeof(array)/sizeof(int ); } main() { int arr[10]; printf(“The dimension of the array is %d”, DIM(arr)); }

2 Answers   CSC,






what will be the output of this program? void main() { int a[]={5,10,15}; int i=0,num; num=a[++i] + ++i +(++i); printf("%d",num); }

3 Answers   Wipro,


int main() { int x=10; printf("x=%d, count of earlier print=%d", x,printf("x=%d, y=%d",x,--x)); getch(); } ================================================== returns error>> ld returned 1 exit status =================================================== Does it have something to do with printf() inside another printf().

2 Answers  


find simple interest & compund interest

2 Answers  


main() { printf("%d", out); } int out=100;

3 Answers  


Write a program that reads a dynamic array of 40 integers and displays only even integers

2 Answers  


main() { char i=0; for(;i>=0;i++) ; printf("%d\n",i); }

2 Answers  


main() { int a=10,*j; void *k; j=k=&a; j++; k++; printf("\n %u %u ",j,k); }

1 Answers  


Categories