Q:

C Program to print number without loop condition. So we use recursive main function

0

C Program to print number without loop condition. So we use recursive main function

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

#include<stdio.h>

int main() 

{

      static int i = 1;

      if (i <= 100) 

      {

          printf("%d\n", i++);

          main();

      }

      return 0;

}

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now