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

what is recursion in C

857


What is the difference between malloc() and calloc() function in c language?

850


What is data structure in c and its types?

841


Explain what is a 'locale'?

822


What do the functions atoi(), itoa() and gcvt() do?

938


Do you know the difference between exit() and _exit() function in c?

831


Can I use base-2 constants (something like 0b101010)? Is there a printf format for binary?

826


Why ca not I do something like this?

813


why arguments can generally be passed to functions a) sending the values of the arguments b) sending the addresses of the arguments c) a & b d) none of the above

921


write a program to convert a expression in polish notation(postfix) to inline(normal) something like make 723+* (2+3) x 7 (not sure) just check out its mainly printing expression in postfix form to infix.

3759


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

889


What is quick sort in c?

844


Explain do array subscripts always start with zero?

972


What is equivalent to ++i+++j?

879


What functions are used in dynamic memory allocation in c?

824