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
How can I delete a file?
How can a program be made to print the line number where an error occurs?
Why ca not I do something like this?
Find the second largest element in an array with minimum no of comparisons and give the minimum no of comparisons needed on an array of size N to do the same.
a formula,a series of steps,or well defined set of rules for solving a problem a) algorithem b) program c) erdiagram d) compiler
1234554321 1234 4321 123 321 12 21 1 1 12 21 123 321 1234 4321 1234554321
Design a program which assigns values to the array temperature. The program should then display the array with appropriate column and row headings.
Does c have circular shift operators?
What are the disadvantages of c language?
Where are local variables stored in c?
Is struct oop?
How can you tell whether a program was compiled using c versus c++?
Explain what are bus errors, memory faults, and core dumps?
What is the right type to use for boolean values in c?
Why header file is used in c?