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
Can static variables be declared in a header file?
Why is c so powerful?
What is a program flowchart and how does it help in writing a program?
How many levels of pointers can you have?
how we can make 3d venturing graphics on outer interface
What does d mean?
Write a program to generate a pulse width frequency of your choise,which can be variable by using the digital port of your processor
How can I dynamically allocate arrays?
What is the use of function in c?
What is c language and why we use it?
hai iam working in sap sd module for one year and working in lumax ind ltd in desp department but my problem is i have done m.b.a in hr/marketing and working sap sd there is any combination it. can you give right solution of my problem. and what can i do?
What is far pointer in c?
What is array of pointers to string?
Explain how do you declare an array that will hold more than 64kb of data?
What is int main () in c?