Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What is "Duff's Device"?

1111


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(); }

2261


Explain void pointer?

970


How can I display a percentage-done indication that updates itself in place, or show one of those twirling baton progress indicators?

975


What is a loop?

959


What is pragma c?

1059


Why shouldn’t I start variable names with underscores?

1005


What is "Hungarian Notation"?

1030


How can I handle floating-point exceptions gracefully?

1106


What is getch c?

1240


What is non linear data structure in c?

965


Explain how does free() know explain how much memory to release?

1010


explain how do you use macro?

1098


Describe the difference between = and == symbols in c programming?

1295


Write a simple code fragment that will check if a number is positive or negative.

1099