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

Write a program in "C" to calculate the root of a quadratic equation ax^2+bx+c=0, where the value of a,b & c are known.

2219


How can I do graphics in c?

1010


Explain how does flowchart help in writing a program?

1100


What is the difference between NULL and NUL?

1278


How many types of sorting are there in c?

1038


What is dynamic dispatch in c++?

1041


typedef struct{ char *; nodeptr next; } * nodeptr ; What does nodeptr stand for?

1621


C language questions for civil engineering

1695


how to solve "unable to open stdio.h and conio.h header files in windows 7 by using Dos-box software

3298


How can I delete a file?

1051


Can the “if” function be used in comparing strings?

1031


Explain the difference between call by value and call by reference in c language?

1096


What is n in c?

1012


How can I call fortran?

1026


Explain what are linked list?

1036