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 "Duff's Device"?
find the output? void r(int a[],int c, int n) { if(c>n) { a[c]=a[c]+c; r(a,++c,n); r(a,++c,n); } } int main() { int i,a[5]={0}; r(a,0,5); for(i=0;i<5;i++) printf("\n %d",a[i]); getch(); }
Explain void pointer?
How can I display a percentage-done indication that updates itself in place, or show one of those twirling baton progress indicators?
What is a loop?
What is pragma c?
Why shouldn’t I start variable names with underscores?
What is "Hungarian Notation"?
How can I handle floating-point exceptions gracefully?
What is getch c?
What is non linear data structure in c?
Explain how does free() know explain how much memory to release?
explain how do you use macro?
Describe the difference between = and == symbols in c programming?
Write a simple code fragment that will check if a number is positive or negative.