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?



write a progam to compare the string using switch case?..

Answer / 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

More C Interview Questions

Explain what is dynamic data structure?

0 Answers  


How do I declare an array of N pointers to functions returning pointers to functions returning pointers to characters?

2 Answers   CMC, Wipro,


Explain the use of #pragma exit?

0 Answers  


what are threads ? why they are called light weight processes ? what is the relation between process and threads ?

1 Answers  


find the sum of two matrices and WAP for it.

0 Answers   Huawei,


why program counter is 16 bit?

3 Answers  


what is mean by Garbage collection ? Please answer me. Advance thanks.

4 Answers   Excel,


Can two or more operators such as and be combined in a single line of program code?

0 Answers  


What is the equivalent code of the following statement in WHILE LOOP format?

0 Answers  


program to print circle structure

1 Answers  


What is difference between scanf and gets?

0 Answers  


What does typeof return in c?

0 Answers  


Categories