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

Explain how can I convert a string to a number?

1037


which of the following statement is wrong a) mes=123.56; b) con='T'*'A'; c) this='T'*20; d) 3+a=b;

3176


What does s c mean on snapchat?

1051


can anyone please tell about the nested interrupts?

2076


What is the difference between int main and void main in c?

1106


What are volatile variables in c?

898


main() { inta=10,b=20; a>=5?b=100:b=200; printf("%d ",b); }

1471


Explain b+ tree?

1018


What are the 4 types of programming language?

1066


Explain can the sizeof operator be used to tell the size of an array passed to a function?

1024


What is modifier & how many types of modifiers available in c?

986


What is the use of ?: Operator?

1088


Explain the use of #pragma exit?

1134


Is int a keyword in c?

916


Are local variables initialized to zero by default in c?

996