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 / valli

char a[50];
use scanf(" %[^\n]",a);

Is This Answer Correct ?    10 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

1052


Explain what is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?

1154


What is s in c?

1097


When should I declare a function?

1214


Can you assign a different address to an array tag?

1211


Do you know the use of fflush() function?

1107


How #define works?

1161


hello freinds next week my interview in reliance,nybody has an idea about it intervew questions..so tell

2223


What is ctrl c called?

1100


Is it possible to initialize a variable at the time it was declared?

1258


Why c is called a middle level language?

1162


What happens if header file is included twice?

1211


Are c and c++ the same?

1104


Can we declare variable anywhere in c?

1034


How important is structure in life?

1147