A directory of Objective Type Questions covering all the Computer Science subjects. Here you can access and discuss Multiple choice questions and answers for various compitative exams and interviews.

Discussion Forum

Que. After 3 calls of the c function bug() below, the values of i and j will be:

int j = 1;
bug()
{ Static int i = 0; int j = 0;
i++; j++;
return (i) ; }
a. i=0, j=0
b. i=3, j=3
c. i=3, j=0
d. i=3, j=1
Answer:i=3, j=1
Confused About the Answer? Ask for Details Here
Know Explanation? Add it Here