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...


Write a main() program that calls this function at least 10
times. Try implementing this function in two different
ways. First, use an external variable to store the count.
Second, use a local variable. Which is more appropriate?

Answers were Sorted based on User's Feedback



Write a main() program that calls this function at least 10 times. Try implementing this function ..

Answer / banavathvishnu

main()
{
static int i;
while(i<10)
{
i++;
main();
}

}

Is This Answer Correct ?    1 Yes 0 No

Write a main() program that calls this function at least 10 times. Try implementing this function ..

Answer / satya

why not we use if instead of while in the above answer...

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

Write a C++ program to give the number of days in each month according to what the user entered. example: the user enters June the program must count number of days from January up to June

0 Answers  


m=++i&&++j(||)k++ printf("%d"i,j,k,m)

1 Answers   ABC,


Can a variable be both const and volatile?

0 Answers  


What is the purpose of sprintf() function?

0 Answers  


What is a macro in c preprocessor?

0 Answers  


how to swap 4 number without using temporary number?

2 Answers  


Find greatest of two numbers using macro

4 Answers   Bosch, Siemens,


write an algorithm and a program to count the number of elements in a circularly singly linked list

1 Answers   Ignou,


Define Spanning-Tree Protocol (STP)

0 Answers  


What is const volatile variable in c?

0 Answers  


without using arithmatic operator solve which number is greater??????????

1 Answers   Accenture,


Write a program to display all the prime nos from 1 to 1000000, your code should not take time more than a minute to display all the nos.

0 Answers  


Categories