How to receive strings with spaces in scanf()

Answer Posted / rushabh

scanf("[^\n]s",s);

Is This Answer Correct ?    5 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Are the variables argc and argv are always local to main?

576


What is define directive?

644


Define C in your own Language.

644


Describe the order of precedence with regards to operators in C.

638


What is the use of #define preprocessor in c?

623






What is meant by int main ()?

723


Hai what is the different types of versions and their differences

1495


How do you determine a file’s attributes?

605


Write a program to print “hello world” without using semicolon?

679


what is the height of tree if leaf node is at level 3. please explain

1604


Explain Function Pointer?

685


What is const keyword in c?

753


Explain what is wrong with this program statement? Void = 10;

768


If I have a char * variable pointing to the name of a function ..

662


Devise a program that inputs a 3 digit number n and finds out whether the number is prime or not. Find out its factors.

671