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 / satya

why not we use if instead of while in the above answer...

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

5 Write an Algorithm to find the maximum and minimum items in a set of ‘n’ element.

1839


What is the difference between int main and void main in c?

828


In a header file whether functions are declared or defined?

890


How do you convert a decimal number to its hexa-decimal equivalent.Give a C code to do the same

875


What is %lu in c?

922


Can you define which header file to include at compile time?

801


how can use subset in c program and give more example

1694


What are different types of pointers?

784


Explain indirection?

875


What is ## preprocessor operator in c?

821


Write the program that calculates and prints the average of several integers. Assume that the last value read is sentinel 9999.

3402


What is struct node in c?

812


Differentiate between declaring a variable and defining a variable?

829


Explain how can I write functions that take a variable number of arguments?

804


if the area was hit by a virus and so the decrease in the population because of death was x/3 and the migration from other places increased a population by 2x then annually it had so many ppl. find our the population in the starting.

4839