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...

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

How can I split up a string into whitespace-separated fields?

1052


How are Structure passing and returning implemented by the complier?

1160


What is substring in c?

1198


Write a program to print fibonacci series without using recursion?

1128


When is a void pointer used?

1236


What are the different file extensions involved when programming in C?

1248


How can I call a function with an argument list built up at run time?

1232


what are bit fields? What is the use of bit fields in a structure declaration?

2117


What is the difference between null pointer and wild pointer?

1189


Is sizeof a keyword in c?

963


how logic is used

1964


struct screen_pos{ int row, col } ;move_right(cursor)struct screen_pos *cursor;{ cursor.col++; } /* This statementhas a syntax error */What is the correct statement a) cursor.col = cursor.col + 1; b) col.cursor++; c) *cursor.col++; d) pointer

1293


What are the features of c languages?

1099


What is the behavioral difference when include header file in double quotes (“”) and angular braces (<>)?

1333


What are keywords c?

1026