plz answer.... write a program that reads line (using
getline) e.g."345", converts each line to an integer
using "atoi" and computes the average of all the numbers
read. also compute the standard deviation.
Answer / dally
#include<stdio.h
int main()
{
char array[]= "345";
int n;
n = atoi(array);
while(n>1)
{
int sum,aveg,no=1;
n = n%10;
no++;
sum = sum+n;
n=n/10;
}
aveg= sum/no;
printf("Aveg of number %d\n",aveg);
Is This Answer Correct ? | 4 Yes | 0 No |
how can we print hellow world programme without using semicolon
a.One Cannot Take the address of a Bit Field b.bit fields cannot be arrayed c.Bit-Fields are machine Dependant d.Bit-fields cannot be declared as static Which of the Following Statements are true w.r.t Bit-Fields A)a,b&c B)Only a & b C)Only c D)All
3 Answers Accenture, Digg.com,
What is scope rule in c?
please can any one suggest me best useful video tutorials on c i am science graduate.please help me.u can email me to sas29@in.com
Why is sizeof () an operator and not a function?
Explain what are the advantages and disadvantages of a heap?
Which is better malloc or calloc?
Can a function be forced to be inline? Also, give a comparison between inline function and the C macro?
int main() { Int n=20,i; For(i=0;i<=n;i--) { Printf(“-“); Return 0;
Explain what is the benefit of using an enum rather than a #define constant?
Snake Game: This is normal snake game which you can find in most of the mobiles. You can develop it in Java, C/C++, C# or what ever language you know.
7 Answers Accenture, Gridco, IBM, Kevin IT, TCS, Vimukti Technologies,
What is the use of a static variable in c?