...
Programming-for-Output-Problems
October 6, 2023
Compiler-Design
October 6, 2023
Programming-for-Output-Problems
October 6, 2023
Compiler-Design
October 6, 2023

Programming-for-Output-Problems

Question 16
What is the output of this C code?

A
5 5 5
B
5 5 junk
C
5 junk junk
D
Compile time error
Question 16 Explanation: 
If we are given p instead of *p then it prints the address of k but we are printing the value of k.
The same rule applies in **m.
Output is 5 5 5
Correct Answer: A
Question 16 Explanation: 
If we are given p instead of *p then it prints the address of k but we are printing the value of k.
The same rule applies in **m.
Output is 5 5 5

Leave a Reply

Your email address will not be published. Required fields are marked *