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 |
How can I ensure that integer arithmetic doesnt overflow?
What is the default value of local and global variables in c?
write a program of palindrome(madam=madam) using pointer?
Evaluate the following: int fn(int v) { if(v==1 || v==0) return 1; if(v%2==0) return fn(v/2)+2; else return fn(v-1)+3; } for fn(7); 1) 10 2) 11 3) 1
Bit swapping
du u know test pattern for robosoft? Plz share
1 Answers RoboSoft, TATA, Wipro,
Explain what is the purpose of "extern" keyword in a function declaration?
void main() { int x=25,y=32; clrscr(); x=x++ + y++; y=++x + ++y; printf("%d%d",x,y); }
explain memory layout of a C program
biggest of two no's with out using if condition statement
Is there a way to jump out of a function or functions?
Write a programme using structure that create a record of students. The user allow to add a record and delete a record and also show the records in ascending order.
0 Answers Sikkim Manipal University,