Skip to content
Related Articles

Related Articles

Save Article
Improve Article
Save Article
Like Article

GATE | GATE-CS-2000 | Question 43

  • Last Updated : 28 Jun, 2021

The value of j at the end of the execution of the following C program.

Attention reader! Don’t stop learning now.  Practice GATE exam well before the actual exam with the subject-wise and overall quizzes available in GATE Test Series Course.

Learn all GATE CS concepts with Free Live Classes on our youtube channel.

int incr(int i)
   static int count = 0;
   count = count + i;
   return (count);
   int i,j;
   for (i = 0; i <=4; i++)
      j = incr(i);

(A) 10
(B) 4
(C) 6
(D) 7

Answer: (A)

Explanation: See question 2 of

Quiz of this Question

My Personal Notes arrow_drop_up
Recommended Articles
Page :