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

Answer Posted / bharath

gets() read the string values which allows white spaces
also. whereas, scanf() doesn't allow.

Is This Answer Correct ?    230 Yes 19 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is 2 d array in c?

544


What is wrong in this statement?

595


how should functions be apportioned among source files?

616


What are the advantages of c preprocessor?

699


What are the advantages of using macro in c language?

581






Write a program to find the biggest number of three numbers in c?

579


what are # pragma staments?

1615


Explain what is meant by high-order and low-order bytes?

625


What is %d used for?

576


How can I manipulate strings of multibyte characters?

629


Hai sir, I had planned to write the NIC scientific engineer exam , plz post the sample question......

1732


Is there any demerits of using pointer?

617


What is the purpose of the statement: strcat (S2, S1)?

634


What is your stream meaning?

589


Why C language is a procedural language?

608