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 the correct code to have following output in c using nested for loop?

1028


What are comments and how do you insert it in a C program?

1198


What are control structures? What are the different types?

1040


Explain is it valid to address one element beyond the end of an array?

1148


What is the difference between procedural and functional programming?

1009


What is c method?

941


What is memcpy() function?

1047


What is the meaning of 2d in c?

1064


What is a structure member in c?

956


Tell us bitwise shift operators?

1022


What are the valid places to have keyword “break”?

1039


Why doesn't C support function overloading?

2611


Explain the process of converting a Tree into a Binary Tree.

2608


How can you invoke another program from within a C program?

1023


What is the use of in c?

947