void main()
{
static int i = 5;
if(--i)
{
main();
printf("%d
",i);
}
}

what would be output of the above program and justify your
answer?

}

Answer Posted / biren

we can't call a main function with in main.

Is This Answer Correct ?    7 Yes 32 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Tell me what are bitwise shift operators?

850


What is the difference between union and anonymous union?

1013


a=10;b= 5;c=3;d=3; if(a printf(%d %d %d %d a,b,c,d) else printf("%d %d %d %d a,b,c,d);

828


What are the general description for loop statement and available loop types in c?

882


Do you have any idea how to compare array with pointer in c?

794






What are local static variables?

811


List the difference between a "copy constructor" and a "assignment operator"?

760


What is difference between && and & in c?

830


FILE *fp1,*fp2; fp1=fopen("one","w") fp2=fopen("one","w") fputc('A',fp1) fputc('B',fp2) fclose(fp1) fclose(fp2)} a.error b. c. d.

1491


Can we access array using pointer in c language?

816


What is the difference between variable declaration and variable definition in c?

766


What is keyword in c?

774


Which is better between malloc and calloc?

870


the maximum length of a character constant can be a) 1 character b) 8 characters c) 256 chaacters d) 125 characters

2053


Can an array be an Ivalue?

850