MCQs>IT & Programming>Programming With C>What will be printed on the standard output as a result of the following code snippet? void func() { static int i = 1; int j = 1; i++; j++; printf('%d %d ',i,j); } void main() { func(); func(); func(); }
Programming With C MCQs
What will be printed on the standard output as a result of the following code snippet? void func() { static int i = 1; int j = 1; i++; j++; printf("%d %d ",i,j); }
void main() { func(); func(); func(); }
Answer
Correct Answer: 2 2 3 2 4 2
Explanation:
Note: This Question is unanswered, help us to find answer for this one