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
What are header files why are they important?
Can include files be nested? How many levels deep can include files be nested?
How can I send mail from within a c program?
What is the difference between declaring a variable by constant keyword and #define ing that variable?
What is the explanation for modular programming?
Can you please explain the scope of static variables?
What is the significance of c program algorithms?
What is null in c?
How can I ensure that integer arithmetic doesnt overflow?
What is file in c language?
Differentiate between static and dynamic modeling.
What happens if you free a pointer twice?
Is null always equal to 0(zero)?
What are header files and explain what are its uses in c programming?
any "C" function by default returns an a) int value b) float value c) char value d) a & b