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...

How to receive strings with spaces in scanf()

Answer Posted / murugannr

#include<studio.>
#include<coino.>
viod main
{
int a,b:
char a[12];
char b[10];
Printf{"enter the using string a,b");
scanf("%s,%a,%b");
get(ab)
}

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

i have to apply for the rbi for the post of officers. i need to know abt the entrance questions whether it may be aps or techinical....

2042


How can I read and write comma-delimited text?

1123


Can true be a variable name in c?

1086


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

1438


Why does everyone say not to use scanf? What should I use instead?

1469


What is header file definition?

1137


What are variables c?

1090


What is realloc in c?

1163


Differentiate between the = symbol and == symbol?

1360


What are qualifiers and modifiers c?

1056


In c programming language, how many parameters can be passed to a function ?

1166


What are the advantages of using linked list for tree construction?

1145


Which is more efficient, a switch statement or an if else chain?

1077


What is the difference between far and near in c?

1121


What would be an example of a structure analogous to structure c?

1046