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
Explain how do you generate random numbers in c?
How can I generate floating-point random numbers?
What is the basic structure of c?
What is the condition that is applied with ?: Operator?
What is ambagious result in C? explain with an example.
When c language was developed?
which is conditional construct a) if statement b) switch statement c) while/for d) goto
What is meant by preprocessor in c?
What is the difference between NULL and NUL?
Why is it usually a bad idea to use gets()? Suggest a workaround.
Is Exception handling possible in c language?
What is the purpose of 'register' keyword in c language?
How can I copy just a portion of a string?
What is file in c preprocessor?
How can you invoke another program from within a C program?