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

main() { int i; i = abc(); printf("%d",i); } abc() { _AX = 1000; }

2 Answers  


find simple interest & compund interest

2 Answers  


What is the hidden bug with the following statement? assert(val++ != 0);

1 Answers  


Is the following code legal? void main() { typedef struct a aType; aType someVariable; struct a { int x; aType *b; }; }

1 Answers  


Develop a routine to reflect an object about an arbitrarily selected plane

0 Answers  






#include"math.h" void main() { printf("Hi everybody"); } if <stdio.h> will be included then this program will must compile, but as we know that when we include a header file in "" then any system defined function find its defination from all the directrives. So is this code of segment will compile? If no then why?

2 Answers  


int swap(int *a,int *b) { *a=*a+*b;*b=*a-*b;*a=*a-*b; } main() { int x=10,y=20; swap(&x,&y); printf("x= %d y = %d\n",x,y); }

1 Answers  


#include <stdio.h> main() { char * str = "hello"; char * ptr = str; char least = 127; while (*ptr++) least = (*ptr<least ) ?*ptr :least; printf("%d",least); }

1 Answers  


#include <stdio.h> int main(void) { int a=4, b=2; a=b<<a+b>>2 ; printf("%d",a); return 0; }

0 Answers   Student,


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

1 Answers  


Write a routine that prints out a 2-D array in spiral order

3 Answers   Microsoft,


void main() { int x,y=2,z; z=(z*=2)+(x=y=z); printf("%d",z); }

4 Answers  


Categories