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 function that accepts a sentence as a parameter, and returns the same with each of its words reversed. The returned sentence should have 1 blank space between each pair of words. Demonstrate the usage of this function from a main program. Example: Parameter: “jack and jill went up a hill” Return Value: “kcaj dna llij tnew pu a llih”
What does the c preprocessor do?
What are the uses of null pointers?
How we can insert comments in a c program?
Is flag a keyword in c?
What is a void * in c?
What is the main differences between C and Embedded C?
who is the founder of c
19 Answers College School Exams Tests, HP,
how can i get output like this? 1 2 3 4 5 6
main() { printf("\n %d %d %d",sizeof('3'),sizeof("3"),sizeof(3)); }
Why use int main instead of void main?
What is time null in c?