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 calculate the income tax of the employees in an organization where the conditions are given as. (I.T. = 0 if income <100000 I.T = 10% if income _< 200000 it = 20% if income >_ 200000)
7 Answers Consultancy, DBU, FD, JK Associates, Kobe, Satyam,
What is the difference between int main and void main?
What is pass by reference in functions?
What could possibly be the problem if a valid function name such as tolower() is being reported by the C compiler as undefined?
What is the difference between a structure and a union?
what is difference between strcmp & palindrome?
What is wrong with this initialization?
what is diference between return 0 and return NULL??
Write a program to find given number is even or odd without using any control statement.
#define PRINT(int) printf("int = %d ",int) main() {< BR> intx,y,z; x=03;y=02;z=01; PRINT(x^x); z<<=3;PRINT(x); y>>=3;PRINT(y); }
.main() { char *p = "hello world!"; p[0] = 'H'; printf("%s",p); }
How would you print out the data in a binary tree, level by level, starting at the top?