Programming-for-Output-Problems
October 6, 2023Compiler-Design
October 6, 2023Programming-for-Output-Problems
Question 14 |
What is the output of this C code?
5 5 5 | |
5 5 junk | |
5 junk junk | |
Compile time error |
Question 14 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
The same rule applies in **m.
Output is 5 5 5
Correct Answer: A
Question 14 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
The same rule applies in **m.
Output is 5 5 5
Subscribe
Login
0 Comments