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

What is the difference between GETS();AND SCANF();

Answer Posted / niraj kumar

Main difference between '%s' and 'gets' is:
%s ends taking input when it encounter whitespace, new line(
) or EOF.
gets takes whitespace and stops taking input when it encounters new line(
) or EOF.

Is This Answer Correct ?    14 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the explanation for modular programming?

1212


What is main function in c?

1079


What are the features of the c language?

1084


Explain what are the advantages and disadvantages of a heap?

1091


program to find error in linklist.(i.e find whether any node point wrongly to previous nodes instead of next node)

2096


how to print the character with maximum occurence and print that number of occurence too in a string given ?

2471


What is anagram in c?

918


What is the condition that is applied with ?: Operator?

1129


What are the different file extensions involved when programming in C?

1269


What is static and volatile in c?

1221


What is %lu in c?

1257


Does sprintf put null character?

1043


What is a program flowchart?

1199


Is linux written in c?

1040


What is sizeof array in c?

1057