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 |
‘ C’ PROGRAME TO SHOW THE TYPE OF TRANGLE BY ACCEPTING IT’S LENGTH .
What are the various topologies? Which one is the most secure?
How many levels of pointers can you have?
what is the difference between while and do while?
Explain goto?
what is the diff b/w static and non static variables in C. Give some examples plz.
Hai why 'c' is the middle language
1.what are local and global variables? 2.what is the scope of static variables? 3.what is the difference between static and global variables? 4.what are volatile variables? 5.what is the use of 'auto' keyword? 6.how do we make a global variable accessible across files? Explain the extern keyword? 7.what is a function prototype? 8.what does keyword 'extern' mean in a function declaration?
plz answer..... a program that reads non-negative integer and computes and prints its factorial
Explain what is wrong with this statement? Myname = ?robin?;
What are multibyte characters?
1)which of following operator can't be overloaded. a)== b)++ c)?! d)<=