MCQs > IT & Programming > C Programming > Output 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(); }

C Programming 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

C Programming Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

C Programming Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it