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
#include
Apart from dennis ritchie who the other person who contributed in design of c language.
How would you use the functions fseek(), freed(), fwrite() and ftell()?
What is variable declaration and definition in c?
How can I read in an object file and jump to locations in it?
Hai what is the different types of versions and their differences
How do I get a null pointer in my programs?
Explain why can’t constant values be used to define an array’s initial size?
What is c basic?
What functions are used for dynamic memory allocation in c language?
Explain the difference between getch() and getche() in c?
Why c is called free form language?
Is c still relevant?
How will you divide two numbers in a MACRO?
What is the right type to use for boolean values in c? Is there a standard type?