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
What is the use of a semicolon (;) at the end of every program statement?
Dont ansi function prototypes render lint obsolete?
What does %c mean in c?
#include main() { int *p, *c, i; i = 5; p = (int*) (malloc(sizeof(i))); printf(" %d",*p); *p = 10; printf(" %d %d",i,*p); c = (int*) calloc(2); printf(" %d ",*c); }
I need testPalindrome and removeSpace
#include
Write a program to replace n bits from the position p of the bit representation of an inputted character x with the one's complement. Method invertBit takes 3 parameters x as input character, p as position and n as the number of positions from p. Replace n bits from pth position in 8 bit character x. Then return the characters by inverting the bits.
What does the error message "DGROUP exceeds 64K" mean?
define string ?
What is the difference between array and linked list in c?
What is c token?
What does emoji p mean?
Is c dynamically typed?
Explain the process of converting a Tree into a Binary Tree.
how to construct a simulator keeping the logical boolean gates in c
Explain how can you tell whether a program was compiled using c versus c++?