[Updated] Goldman Sachs Aptitude Test Questions and Answers
Practice List of TCS Digital Coding Questions !!!
Take 50+ FREE!! Online Data Interpretation Mock test to crack any Exams.
Interview Questions and Answers :: HCL Technologies

11. Asked about the values of the static variable.

void increment()
{
static int i = 4;
printf("%d",i);
i++;
}


int main()
{
int i= 0;
printf("%d", i);
i++;
increment();
printf("%d",i);
return 0;
}

Answer:

No Discussion on this question yet!

Post Your Answer Here:      Public      Private

No Discussion on this question yet!