019. Technical interview question: Give the output of the following code

int main()
{
  static int var = 5;
  printf("%d",var--);
  if(var)
    main();
}
Watch video explanation for this technical question

Leave a Reply

Your email address will not be published. Required fields are marked *