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
Differentiate between Macro and ordinary definition.
What are the three constants used in c?
How can a number be converted to a string?
Explain union. What are its advantages?
What is the explanation for the dangling pointer in c?
What the different types of arrays in c?
Here is a good puzzle: how do you write a program which produces its own source code as output?
What is the difference between declaring a variable and defining a variable?
What is a lvalue
What does %c mean in c?
What is the size of structure in c?
Which is better oop or procedural?
Is null a keyword in c?
What should malloc(0) do? Return a null pointer or a pointer to 0 bytes?
Why do we use namespace feature?