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

How do you use a pointer to a function?

0 Answers  


How does sizeof know array size?

0 Answers  


Which is an example of a structural homology?

0 Answers  


Write a program to find the given number is odd or even without using any loops(if,for,do,while)

4 Answers   CNC, Gokul,


print out of string in this format; 1. "rajesh" 2. \n 3. %d

5 Answers   mpower,


write a program that accepts 3 numbers from the user. dispaly the values in a descending order.

3 Answers  


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

1 Answers  


Three major criteria of scheduling.

1 Answers  


can we initialize all the members of union?

2 Answers  


Can we declare variables anywhere in c?

0 Answers  


What is merge sort in c?

0 Answers  


What is the symbol indicated the c-preprocessor?

0 Answers  


Categories