plz answer.. a program that takes a string e.g. "345" and
returns integer 345
Answer Posted / swapnil chhajer
#include<stdio.h>
#include<stdlib.h>
int main()
{
char str[10];
printf("Enter the string : ");
gets(str);
printf("Converted integer : %d",atoi(str));
getchar();
}
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
What is Dynamic memory allocation in C? Name the dynamic allocation functions.
differentiate built-in functions and user – defined functions.
explain what is fifo?
What are run-time errors?
Not all reserved words are written in lowercase. TRUE or FALSE?
What are the advantages of union?
Write a program to print factorial of given number without using recursion?
What is the use of void pointer and null pointer in c language?
What are the similarities between c and c++?
What are the disadvantages of c language?
Why is c so powerful?
What's a good way to check for "close enough" floating-point equality?
What is the heap in c?
What does a pointer variable always consist of?
How can I avoid the abort, retry, fail messages?