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

#include { printf("Hello"); } how compile time affects when we add additional header file .

1907


Apart from dennis ritchie who the other person who contributed in design of c language.

1408


How would you use the functions fseek(), freed(), fwrite() and ftell()?

1169


What is variable declaration and definition in c?

910


How can I read in an object file and jump to locations in it?

1035


Hai what is the different types of versions and their differences

1945


How do I get a null pointer in my programs?

1120


Explain why can’t constant values be used to define an array’s initial size?

1363


What is c basic?

1186


What functions are used for dynamic memory allocation in c language?

1159


Explain the difference between getch() and getche() in c?

1004


Why c is called free form language?

1028


Is c still relevant?

1094


How will you divide two numbers in a MACRO?

1144


What is the right type to use for boolean values in c? Is there a standard type?

1020