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 / parmjeet kumar

#include<stdio.h>
#include<conio.h>
void main()
{
char a[50];
printf("enter the string:");
scanf("%s",&a);
printf("%s",a);
getch();
}

Is This Answer Correct ?    0 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why c is called a middle level language?

1103


difference between native and cross compilers

2120


what is the function of pragma directive in c?

1116


What is a spanning Tree?

1578


What is a good data structure to use for storing lines of text?

1080


Differentiate between the = symbol and == symbol?

1290


Explain the difference between strcpy() and memcpy() function?

992


What is c system32 taskhostw exe?

1020


What is a nested loop?

1115


How can I direct output to the printer?

1315


Is there anything like an ifdef for typedefs?

1147


Is c call by value?

1012


What is a node in c?

971


What tq means in chat?

1120


What do you mean by a sequential access file?

1074