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
Explain the difference between getch() and getche() in c?
write a program to create a sparse matrix using dynamic memory allocation.
Explain what are the different data types in c?
How do you determine whether to use a stream function or a low-level function?
What is the meaning of ?
What are enums in c?
What is data structure in c programming?
What is actual argument?
how to make a scientific calculater ?
What is the symbol indicated the c-preprocessor?
Explain what is wrong in this statement?
What is a string?
typedef enum { html, java, javascript, perl, cgi } lang;The above statement defines a : a) Union b) User defined type c) Enumerated variable d) none
how can i access hard disk address(physical address)? are we access hard disk by using far,near or huge pointer? if yes then please explain.....
What is an array? What the different types of arrays in c?