Interview Questions and Answers :: HCL Technologies
Home > Experience Archives > HCL Technologies > Interview Question Set 3 > Discussion
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!
No Discussion on this question yet!