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


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C Interview Questions

What is signed and unsigned?

0 Answers  


What are different types of pointers?

0 Answers  


What is preprocessor with example?

0 Answers  


main() { int x=2, y=4 if ((x==2||y==4) x++ y++ if (y==4+1) { x=x+y; } y++; printf("The values of x and y are %d and %d."x,y); } What is the output?

5 Answers   TCS,


Why pointers are used?

0 Answers  


program for following output using for loop? 1 2 3 4 5 2 3 4 5 3 4 5 4 5 5

8 Answers   Infosys,


Explain the difference between structs and unions in c?

0 Answers  


how to add two numbers without using arithmetic operators?

4 Answers  


List the difference between a 'copy constructor' and a 'assignment operator' in C?

0 Answers   Accenture,


if array a conatins 'n' elements and array b conatins 'n-1' elements.array b has all element which are present in array a but one element is missing in array b. find that element.

18 Answers   Parexel, Ram Infotech, Zycus Infotech,


main() { int i=0; while(+(+i--)!=0) i-=i++; printf(i); }

3 Answers  


Write a program to print the following series 2 5 11 17 23 31 41 47 59 ...

2 Answers  


Categories