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 |
i want to job in your company, so how it will be possible.
write a function that accepts an integer/char array and an search item.If the search item is there in the array return position of array and value else return -1.without using other array,without sorting,not to use more than one loop?
Write a small C program to determine whether a machine's type is little-endian or big-endian.
What does %p mean?
what is Array?
What is advantage of pointer in c?
An expression to whose value an operater is applied a) operand b) variable c) constant d) all of the above
Write a C program that computes the value ex by using the formula ex =1+x/1!+x2/2!+x3+3!+………….
What is equivalent to ++i+++j?
What is the memory allocated by the following definition ? int (*x)();
Average of a couple 10 years ago was 25. The average remains same after having a child and twins after 3 years. What is the present age of the first child
Read two numbers from keyboard and find maximum of them?