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
How can variables be characterized?
What is the scope of global variable in c?
Is there a way to switch on strings?
What is an array in c?
There is a practice in coding to keep some code blocks in comment symbols than delete it when debugging. How this affect when debugging?
List some basic data types in c?
How can I send mail from within a c program?
What are run-time errors?
When is a null pointer used?
What is a program flowchart?
What do you mean by dynamic memory allocation in c?
What does c mean in basketball?
In c programming typeing to occupy the variables in memory space. if not useing the variable the memory space is wasted.ok, how to avoid the situation..? (the variable is used & notused)
Can we increase size of array in c?
What is action and transformation in spark?