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


Please Help Members By Posting Answers For Below Questions

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

2017


What are the 5 types of organizational structures?

814


How can you return multiple values from a function?

875


Can an array be an Ivalue?

894


What is pointers in c?

927


Who invented b language?

1170


How do we print only part of a string in c?

840


how to write optimum code to divide a 50 digit number with a 25 digit number??

3038


Give basis knowledge of web designing ...

1810


What is difference between union and structure in c?

817


What is a global variable in c?

811


Is there a built-in function in C that can be used for sorting data?

1037


Write a program to generate random numbers in c?

900


Is main is a keyword in c?

890


Can you pass an entire structure to functions?

933