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 are variables c?

0 Answers  


Explain do array subscripts always start with zero?

0 Answers  


Write a C program to accept a matrix of any size. Find the frequency count of each element in the matrix and positions in which they appear in the matrix

0 Answers   CLG,


Write a program that his output * *** *****

1 Answers  


What are the advantages of using linked list for tree construction?

0 Answers  






What is a memory leak in structures? How can we rectify that?

2 Answers  


void swap(int a,int b) { a=a+b; b=a-b; a=a-b; } in this code always gives the same result for all case

9 Answers   Accenture, TCS,


How can I allocate arrays or structures bigger than 64K?

5 Answers  


What is the size of structure pointer in c?

0 Answers  


Just came across this question, felt worth sharing, so here it is I want you to make a C/C++ program that for any positive integer n will print all the positive integers from 1 up to it and then back again! Let's say n=5 I want the program to print: 1 2 3 4 5 4 3 2 1. Too easy you say? Okay then... You can ONLY USE: 1 for loop 1 printf/cout statement 2 integers( i and n) and as many operations you want. NO if statements, NO ternary operators, NO tables, NO pointers, NO functions!

1 Answers  


what do you mean by inline function in C?

0 Answers   IBS, TCS,


Was 2000 a leap year?

0 Answers  


Categories