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?



write a progam to compare the string using switch case?..

Answer / 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

More C Interview Questions

Explain the use of function toupper() with and example code?

0 Answers  


What is meant by recursion?

0 Answers   ADP,


Write a function that will take in a phone number and output all possible alphabetical combinations

0 Answers   Motorola,


What is structure data type in c?

0 Answers  


What is a pointer variable in c language?

0 Answers  


what are the advantages of a macro over a function?

0 Answers   TCS,


Difference between exit() and _exit() function?

0 Answers  


program to find a smallest number in an array

15 Answers   Microsoft, Sony,


Why is conio.h not required when we save a file as .c and use clrscr() or getch() ?

2 Answers  


52.write a “Hello World” program in “c” without using a semicolon? 53.Give a method to count the number of ones in a 32 bit number? 54.write a program that print itself even if the source file is deleted? 55.Given an unsigned integer, find if the number is power of 2?

25 Answers   Datamatics, Solartis, TCS, ThinkBox, Trine,


What is omp_num_threads?

0 Answers  


In C programming, what command or code can be used to determine if a number of odd or even?

0 Answers  


Categories