Valid CLA-11-03 Dumps shared by ExamDiscuss.com for Helping Passing CLA-11-03 Exam! ExamDiscuss.com now offer the newest CLA-11-03 exam dumps, the ExamDiscuss.com CLA-11-03 exam questions have been updated and answers have been corrected get the newest ExamDiscuss.com CLA-11-03 dumps with Test Engine here:
What happens if you try to compile and run this program? #include <stdio.h> int fun(int i) { return i++; } int main (void) { int i = 1; i = fun(i); printf("%d",i); return 0; } Choose the correct answer:
Correct Answer: D
In the fun function: cCopy code int fun(int i) { return i++; } The post-increment operator i++ returns the current value of i and then increments it. So, fun(i) will return the current value of i (which is 1) and then increment i to 2. In the main function: cCopy code int i = 1; i = fun(i); printf("%d", i); Here, i is assigned the result of fun(i), which is 1. So, the program prints the value of i, which is 1. Therefore, the correct answer is D. The program outputs 1.