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

Here is a good puzzle: how do you write a program which produces its own source code as output?

0 Answers  


why division operator not work in case of float constant?

2 Answers  


Explain how are 16- and 32-bit numbers stored?

0 Answers  


how to add numbers without using arithmetic operators.

14 Answers   TCS,


why i join syntel?

23 Answers   ABC, Syntel, TCS,


how write a addtion of two single dimensional array using of pointer in c language?

3 Answers   DRDO,


how to find anagram without using string functions using only loops in c programming

1 Answers   Mind Tree, TCS,


write a recursive program in'c'to find whether a given five digit number is a palindrome or not

2 Answers  


how will you write a program on linked lists using JAVA programming???????????

1 Answers   Keane India Ltd,


If the size of int data type is two bytes, what is the range of signed int data type?

0 Answers  


what will be the output: main(){char ch;int a=10;printf("%d",ch);}

36 Answers   Accenture, TCS, Wipro,


What is difference between stdio h and conio h?

0 Answers  


Categories