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?
Answers were Sorted based on User's Feedback
Answer / banavathvishnu
main()
{
static int i;
while(i<10)
{
i++;
main();
}
}
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / satya
why not we use if instead of while in the above answer...
| Is This Answer Correct ? | 0 Yes | 0 No |
Write a C++ program to give the number of days in each month according to what the user entered. example: the user enters June the program must count number of days from January up to June
m=++i&&++j(||)k++ printf("%d"i,j,k,m)
Can a variable be both const and volatile?
What is the purpose of sprintf() function?
What is a macro in c preprocessor?
how to swap 4 number without using temporary number?
Find greatest of two numbers using macro
write an algorithm and a program to count the number of elements in a circularly singly linked list
Define Spanning-Tree Protocol (STP)
What is const volatile variable in c?
without using arithmatic operator solve which number is greater??????????
Write a program to display all the prime nos from 1 to 1000000, your code should not take time more than a minute to display all the nos.