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 how can I convert a string to a number?
which of the following statement is wrong a) mes=123.56; b) con='T'*'A'; c) this='T'*20; d) 3+a=b;
What does s c mean on snapchat?
can anyone please tell about the nested interrupts?
What is the difference between int main and void main in c?
What are volatile variables in c?
main() { inta=10,b=20; a>=5?b=100:b=200; printf("%d ",b); }
Explain b+ tree?
What are the 4 types of programming language?
Explain can the sizeof operator be used to tell the size of an array passed to a function?
What is modifier & how many types of modifiers available in c?
What is the use of ?: Operator?
Explain the use of #pragma exit?
Is int a keyword in c?
Are local variables initialized to zero by default in c?