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 register variable in c language?

1029


Which of these functions is safer to use : fgets(), gets()? Why?

1105


Is it better to use malloc() or calloc()?

1116


What is wrong with this program statement?

1040


What is clrscr ()?

1110


What is table lookup in c?

1100


Why is it important to memset a variable, immediately after allocating memory to it ?

2077


write a program to create a sparse matrix using dynamic memory allocation.

4895


How will you declare an array of three function pointers where each function receives two ints and returns a float?

1366


What are the data types present in c?

1163


What is a buffer in c?

1005


Explain b+ tree?

1069


What are header files in c?

1080


What are the benefits of organizational structure?

1029


What is the function of this pointer?

1343