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 pointers? What are different types of pointers?
Explain which function in c can be used to append a string to another string?
What is the stack in c?
typedef enum { html, java, javascript, perl, cgi } lang;The above statement defines a : a) Union b) User defined type c) Enumerated variable d) none
What is meant by operator precedence?
Explain argument and its types.
Why is #define used?
What are loops in c?
How many parameters should a function have?
Explain what is dynamic data structure?
What does the && operator do in a program code?
What are the advantages of using new operator as compared to the function malloc ()?
Is linux written in c?
What is the use of header files?
What is the usage of the pointer in c?