How to receive strings with spaces in scanf()

Answer Posted / murugannr

#include<studio.>
#include<coino.>
viod main
{
int a,b:
char a[12];
char b[10];
Printf{"enter the using string a,b");
scanf("%s,%a,%b");
get(ab)
}

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are pointers really good for, anyway?

805


How can I make it pause before closing the program output window?

780


Which header file is used for clrscr?

778


WRITE A PROGRAM TO MERGE TWO SORTED ARRAY USING MERGE SORT TECHNIQUE..

1798


What is the difference between array and pointer in c?

805


When is a null pointer used?

824


What is the use of linkage in c language?

816


What is the purpose of void in c?

791


What is the size of enum in c?

833


Describe dynamic data structure in c programming language?

809


When was c language developed?

914


What is the difference between volatile and const volatile?

746


why do some people write if(0 == x) instead of if(x == 0)?

830


Explain what are header files and explain what are its uses in c programming?

870


i have to apply for rbi before that i need to know the the syllabus for the entrance questions. whethet it may be aps or techinical

2077