Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Is main() is used in the program,,see below example?

void main()
{
int i;
for(i=0;i<10;i++)
main();
}

Then what is the output of the program?

Answer Posted / sai

The given program is an infinite loop with no
output.Because it calls main() function with in the for
loop.
So the value of the i always '0' only.According to the for
loop condition the execution of the program goes false only
i>=10.Then when the condition in the for loop goes to false?

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?

1292


Can a void pointer point to a function?

1076


write a program to copy the string using switch case?

2946


Is there a way to compare two structure variables?

1169


What is static and volatile in c?

1263


What is the heap in c?

1123


What is indirection in c?

1116


please send me the code for multiplying sparse matrix using c

2222


What is the importance of c in your views?

1236


Why is it usually a bad idea to use gets()? Suggest a workaround.

1867


Is c programming hard?

1080


What is a scope resolution operator in c?

1327


Does c have enums?

1173


What is the difference between malloc() and calloc()?

1973


Does c have function or method?

1059