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

Explain what happens if you free a pointer twice?

617


Write program to remove duplicate in an array?

604


What are high level languages like C and FORTRAN also known as?

691


if the area was hit by a virus and so the decrease in the population because of death was x/3 and the migration from other places increased a population by 2x then annually it had so many ppl. find our the population in the starting.

4511


What is sizeof array?

619






What is dangling pointer in c?

629


What are the features of c language?

625


What is the scope of static variables in c language?

634


int far *near * p; means

3129


Write a program to print "hello world" without using a semicolon?

600


Explain #pragma statements.

608


while loop contains parts a) initialisation, evalution of an expression,increment /decrement b) initialisation, increment/decrement c) condition evalution d) none of the above

750


What is integer constants?

626


How can I check whether a file exists? I want to warn the user if a requested input file is missing.

658


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

768