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?
Answer Posted / banavathvishnu
main()
{
static int i;
while(i<10)
{
i++;
main();
}
}
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is a function simple definition?
Which of the following operators is incorrect and why? ( >=, <=, <>, ==)
How many types of sorting are there in c?
Explain how do you convert strings to numbers in c?
What is meant by type casting?
what do you mean by enumeration constant?
what is the height of tree if leaf node is at level 3. please explain
Explain threaded binary trees?
How can I read in an object file and jump to locations in it?
List some of the static data structures in C?
How do I determine whether a character is numeric, alphabetic, and so on?
What does s c mean in text?
Differentiate between calloc and malloc.
What is a nested loop?
any restrictions have on the number of 'return' statements that may be present in a function. a) no restriction b) only 2 return statements c) only 1 return statements d) none of the above