BETA
Output of the code

What is the output of the following code :

int fun()
{
  static int i;
  return i++;
}
 
main()
{
  int i;
  for(i=0;i<5;i++)
  printf("%d ",fun());
}

Login to Answer
Sort By:
Oldest
|
Newest
|
Vote
|
My Answer