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 b+ tree?
How can I sort a linked list?
how many types of operators are include in c language a) 4 b) 6 c) 8 d) 12
What does c mean before a date?
Explain can the sizeof operator be used to tell the size of an array passed to a function?
Please send me WIPRO technical question to my mail ID.. its nisha_g28@yahoo.com please its urgent
What the different types of arrays in c?
Explain how can I write functions that take a variable number of arguments?
What is pointers in c with example?
Where static variables are stored in c?
Multiply an Integer Number by 2 Without Using Multiplication Operator
Explain what does it mean when a pointer is used in an if statement?
What is sizeof array in c?
What is difference between structure and union with example?
How do I send escape sequences to control a terminal or other device?