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

write a progam to compare the string using switch case?

Answer Posted / kishore kumar naik p

switch(strcmp(str1,str2))
{
case 0: printf("\nBoth are equal"); break;
default:
printf("\nBoth are not equal");
break;
}

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are header files why are they important?

1157


Can include files be nested? How many levels deep can include files be nested?

1207


How can I send mail from within a c program?

1078


What is the difference between declaring a variable by constant keyword and #define ing that variable?

3444


What is the explanation for modular programming?

1277


Can you please explain the scope of static variables?

1112


What is the significance of c program algorithms?

1196


What is null in c?

1160


How can I ensure that integer arithmetic doesnt overflow?

1259


What is file in c language?

1052


Differentiate between static and dynamic modeling.

1191


What happens if you free a pointer twice?

1139


Is null always equal to 0(zero)?

1098


What are header files and explain what are its uses in c programming?

1177


any "C" function by default returns an a) int value b) float value c) char value d) a & b

1138