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 is 1d array in c?
any restrictions have on the number of 'return' statements that may be present in a function. a) no restriction b) only 2 return statements c) only 1 return statements d) none of the above
Why does everyone say not to use gets?
what do you mean by inline function in C?
What is character set?
Why does not c have an exponentiation operator?
Why does everyone say not to use scanf? What should I use instead?
Explain what is a pragma?
Explain the red-black trees?
#define MAX(x,y) (x) >(y)?(x):(y) main() { inti=10,j=5,k=0; k= MAX(i++,++j); printf("%d..%d..%d",i,j,k); }
What is uint8 in c?
Where we use clrscr in c?
What is the best way to comment out a section of code that contains comments?
Is fortran faster than c?
Can include files be nested? How many levels deep can include files be nested?