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 / rejith vr

We can use scanf() instead of gets()

Syntax : gets(str);
||
||
scanf("%[^
]s",str);

it will accept multiple words in a string

Is This Answer Correct ?    5 Yes 23 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How does pointer work in c?

1124


What is c programming structure?

1203


write a programming in c to find the sum of all elements in an array through function.

2180


Why is it that not all header files are declared in every C program?

1225


What is the return type of sizeof?

1067


what are enumerations in C

1163


can anyone suggest some site name..where i can get some good data structure puzzles???

2084


How can I pad a string to a known length?

1034


The % symbol has a special use in a printf statement. Explain how would you place this character as part of the output on the screen?

1212


What is #define size in c?

1197


Write a program to check armstrong number in c?

1132


What is use of pointer?

1090


Explain 'far' and 'near' pointers in c.

1144


How can I avoid the abort, retry, fail messages?

1138


What is default value of global variable in c?

994