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

Explain can the sizeof operator be used to tell the size of an array passed to a function?

1015


Explain what does the function toupper() do?

1005


What are the advantages of c preprocessor?

1209


What are the advantages and disadvantages of pointers?

1011


What is c programing language?

1042


Write a program of advanced Fibonacci series.

1093


How can I avoid the abort, retry, fail messages?

1085


What is pass by reference in functions?

771


How will you delete a node in DLL?

1219


What is page thrashing?

1026


Which operators cannot be overloaded a) Sizeof b) .* c) :: d) all of the above

1095


Explain what does a function declared as pascal do differently?

1212


Why string is used in c?

953


Explain the binary height balanced tree?

1124


How many types of arrays are there in c?

996