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 the correct code to have following output in c using nested for loop?
What are comments and how do you insert it in a C program?
What are control structures? What are the different types?
Explain is it valid to address one element beyond the end of an array?
What is the difference between procedural and functional programming?
What is c method?
What is memcpy() function?
What is the meaning of 2d in c?
What is a structure member in c?
Tell us bitwise shift operators?
What are the valid places to have keyword “break”?
Why doesn't C support function overloading?
Explain the process of converting a Tree into a Binary Tree.
How can you invoke another program from within a C program?
What is the use of in c?