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 pointer to pointer in c language?
What is the advantage of c?
Disadvantages of C language.
What is the purpose of sprintf?
Is fortran still used in 2018?
I just typed in this program, and it is acting strangely. Can you see anything wrong with it?
to print the salary of an employee according to follwing calculation: Allowances:HRA-20% of BASIC,DA-45% of BASIC,TA-10%. Deductions:EPF-8% of BASIC,LIC-Rs.200/-Prof.Tax:Rs.200/- create c language program?
What do you mean by dynamic memory allocation in c?
Why do we need arrays in c?
What is a memory leak? How to avoid it?
What do you mean by dynamic memory allocation in c? What functions are used?
Multiply an Integer Number by 2 Without Using Multiplication Operator
How do you define a function?
write a program to print the consecutive repeated character from the given string... input string is : hhhhjkutskkkkkggggj output should be like this: hhhhkkkkkgggg anyone help me...
ATM machine and railway reservation class/object diagram