atoi, which takes a string and converts it to an integer.
write a program that reads lines(using getline), converts
each line to an integer using atoi and computes the average
of all the numbers read. also compute the standard deviation


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

Post New Answer

More C Interview Questions

what is c language?

2 Answers  


What is period operator in c?

3 Answers   Wipro,


what will be the output of this program main() { int i=1; while (i<=10); { i++; } }

11 Answers  


Sir,please help me out with the code of this question. Write an interactive C program that will encode or decode multiple lines of text. Store the encoded text within a data file, so that it can be retrieved and decoded at any time. The program should include the following features: (a) Enter text from the keyboard, encode the text and store the encoded text in a data file. (b) Retrieve the encoded text and display it in its encoded form. (c) Retrieve the encoded text, decode it and then display the decoded text. (d) End the computation. Test the program using several lines of text of your choice.

0 Answers  


what is pointer ?

10 Answers   Kernex Micro Systems,






Calculate 1*2*3*____*n using recursive function??

0 Answers  


What is graph in c?

0 Answers  


increment operateor (++)and decrament(--) #include<stdio.h> #inclide<conio.h> main() { int x=15; while(x!=0) scanf("%d",&x); {

2 Answers   HCL, Syntel, TCS,


What is a rvalue?

0 Answers   Global Logic,


How can this be legal c?

0 Answers  


Explain goto?

0 Answers  


what is the structure pointer?

0 Answers   Accenture, HCL,


Categories