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 12
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 12 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 12 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
0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
error: Alert: Content selection is disabled!!