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 you tell whether two strings are the same?
How will you divide two numbers in a MACRO?
How can I read/write structures from/to data files?
Who developed c language and when?
Why is C language being considered a middle level language?
Device an algorithm for weiler-atherton polygon clipping, where the clipping window can be any specified polygon
Is it acceptable to declare/define a variable in a c header?
Why is c still so popular?
What are extern variables in c?
How can I automatically locate a programs configuration files in the same directory as the executable?
Explain main function in c?
When reallocating memory if any other pointers point into the same piece of memory do you have to readjust these other pointers or do they get readjusted automatically?
What are linker error?
What is the difference between near, far and huge pointers?
What is the difference between text and binary i/o?