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


Please Help Members By Posting Answers For Below Questions

Explain how do you generate random numbers in c?

831


How can I generate floating-point random numbers?

810


What is the basic structure of c?

793


What is the condition that is applied with ?: Operator?

899


What is ambagious result in C? explain with an example.

2320


When c language was developed?

835


which is conditional construct a) if statement b) switch statement c) while/for d) goto

1003


What is meant by preprocessor in c?

750


What is the difference between NULL and NUL?

1039


Why is it usually a bad idea to use gets()? Suggest a workaround.

1369


Is Exception handling possible in c language?

1807


What is the purpose of 'register' keyword in c language?

826


How can I copy just a portion of a string?

1079


What is file in c preprocessor?

902


How can you invoke another program from within a C program?

827