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
Write a function stroverlap that takes (at least) two strings, and concatenates them, but does not duplicate any overlap. You only need to worry about overlaps between the end of the first string and the beginning of the second string. Examples: batman, manonthemoon = batmanonthemoon batmmamaman, mamamanonthemoon = batmmamamanonthemoon bat, man = batman batman, batman = batman batman, menonthemoon = batmanmenonthemoon
What are the 5 types of organizational structures?
How can you return multiple values from a function?
Can an array be an Ivalue?
What is pointers in c?
Who invented b language?
How do we print only part of a string in c?
how to write optimum code to divide a 50 digit number with a 25 digit number??
Give basis knowledge of web designing ...
What is difference between union and structure in c?
What is a global variable in c?
Is there a built-in function in C that can be used for sorting data?
Write a program to generate random numbers in c?
Is main is a keyword in c?
Can you pass an entire structure to functions?