Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What is Dynamic memory allocation in C? Name the dynamic allocation functions.

1412


differentiate built-in functions and user – defined functions.

1084


explain what is fifo?

1069


What are run-time errors?

1118


Not all reserved words are written in lowercase. TRUE or FALSE?

1231


What are the advantages of union?

1068


Write a program to print factorial of given number without using recursion?

990


What is the use of void pointer and null pointer in c language?

1120


What are the similarities between c and c++?

1068


What are the disadvantages of c language?

1191


Why is c so powerful?

1111


What's a good way to check for "close enough" floating-point equality?

1159


What is the heap in c?

1077


What does a pointer variable always consist of?

1098


How can I avoid the abort, retry, fail messages?

1136