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

Write a program to check armstrong number in c?

0 Answers  


Do you know pointer in c?

0 Answers  


What are the types of pointers?

0 Answers  


write a program to generate 1st n fibonacci prime number

12 Answers  


What are the different types of pointers used in c language?

0 Answers  






Linked list is a Linear or non linear explain if linear how it working as a non linear data structures

0 Answers  


Explain the difference between #include "..." And #include <...> In c?

0 Answers  


what is diffrence between linear and binary search in array respect to operators?what kind of operator can be used in both seach methods?

0 Answers  


what is the full form of c language

9 Answers   Satyam, TCS, VNC,


What is pointer to pointer in c?

0 Answers  


Can a pointer be null?

0 Answers  


What is array in C

0 Answers  


Categories