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
c programs are converted into machine language with the help of a) an interpreter b) a compiler c) an operatinf system d) none of the above
Write a program to print “hello world” without using semicolon?
What are the 5 organizational structures?
What does %c mean in c?
Explain what is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?
What is c basic?
What are the ways to a null pointer can use in c programming language?
what will be the output for the following main() { printf("hi" "hello"); }
What is the size of structure in c?
Do you know the use of fflush() function?
What is main return c?
Explain the difference between getch() and getche() in c?
What are header files in c?
Write a code to determine the total number of stops an elevator would take to serve N number of people.
PROGRAM TO WRITE CONTENTS OF 1 FILE IN REVERSE TO ANOTHER FILE,PROGRAM TO COPY 1 FILE TO ANOTHER BY SPECIFYING FILE NAMES AS COMMAND LINE