R
Q. Determine Output
void main() { char *p; p="Hello"; printf("%c", *&*p); }
* 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.
You must be Logged in to update hint/solution
Q. What is the value of “y” in this code?
Q. Which command is to compile C code without linking using gcc compiler?
Q. Which is the correct syntax to declare a file pointer in C?
Q. What is the output of this program?
Q. Which of the following is the proper syntax for declaring macros in C?
Q. Which Translator can translate Assembly language program to Machine Language?
Discusssion
Login to discuss.