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

Want to know how to write a C program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL.

1511


What is use of bit field?

759


Explain void pointer?

580


How do you view the path?

654


what are the different storage classes in c?

652






Why shouldn’t I start variable names with underscores?

615


What is queue in c?

565


What is sorting in c plus plus?

556


What is huge pointer in c?

569


Explain is it valid to address one element beyond the end of an array?

721


Which is best book for data structures in c?

588


What is void c?

558


Why do we use stdio h and conio h?

623


Create a simple code fragment that will swap the values of two variables num1 and num2.

797


What is the behavioral difference when include header file in double quotes (“”) and angular braces (<>)?

800