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
write a programe to find the factorial of given number using recursion
I use turbo C which allocates 2 bytes for integers and 4 bytes for long. I tried to declare array of size 500000 of long type using the following code... long *arr; arr=(long *)(malloc)(500000 * sizeof(long)); It gives a warning that "Conversion may lose significant digits in function main"... And the resulting array size was very less around 8400 as compared to 500000. Any suggestions will be welcomed....
write a program to compare 2 numbers without using logical operators?
What is the purpose of the code, and is there any problem with it? unsigned int f( unsigned n ) { return –n & 7; }
Explain threaded binary trees?
What is the value of a[3] if integer a[] = {5,4,3,2,1}?
Do you know pointer in c?
Why array is used in c?
Write the program for displaying the ten most frequent words in a file such that your program should be efficient in all complexity measures.
How can I rethow can I return a sequence of random numbers which dont repeat at all?
Is printf a keyword?
How do i store a paragraph into a string? for example, if i input a long paragraph, the program will read the words one by one and concatenate them until no word is left.