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 description for syntax errors?
Explain union.
write a program to generate address labels using structures?
Why do we use static in c?
What are comments and how do you insert it in a C program?
Why does everyone say not to use scanf? What should I use instead?
What are the types of data structures in c?
A float occupies 4 bytes in memory. How many bits are used to store exponent part? since we can have up to 38 number for exponent so 2 ki power 6 6, 6 bits will be used. If 6 bits are used why do not we have up to 64 numbers in exponent?
Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create.
What does volatile do?
‘SAVEPOINT’ and ‘ROLLBACK’ is used in oracle database to secure the data comment. Give suitable examples of each with sql command.
Explain how does flowchart help in writing a program?
what is the difference between class and unio?
How can I find out the size of a file, prior to reading it in?
Difference between macros and inline functions? Can a function be forced as inline?