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

What is the package for freshers(Non IIT) in amazon(hyderabad). And what is the same for those who are a contract employee.

4239


Does sprintf put null character?

980


What is atoi and atof in c?

1024


Is there any demerits of using pointer?

1011


Explain pointers in c programming?

1060


What are the different types of data structures in c?

1106


Explain how can I manipulate strings of multibyte characters?

1153


How do you define a string?

1043


What is static function in c?

1064


What is the benefit of using an enum rather than a #define constant?

1169


how to write a c program to print list of fruits in alpabetical order?

2238


What is c method?

940


What is a char in c?

928


what is recursion in C

1018


How do you convert strings to numbers in C?

1166