Determine Output:
void main(){ char *p; p="Hello"; printf("%c", *&*p);}

Determine Output:

void main(){ char *p; p="Hello"; printf("%c", *&*p);}
Correct Answer H

* is a dereference operator & is a reference operator. They can be applied any number of times provided it is meaningful. Here p points to the first character in the string "Hello". *p dereferences it and so its value is H. Again & references it to an address and * dereferences it to the value H.

Related Questions

Determine output:
#include void main(){ char *p = NULL; char *q = 0; if(p) printf(" p "); else printf("nullp"); if(q) printf("q"); else printf(" nullq");}