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

A collection of data with a given structure for excepting storing and providing on demand data for multiple users a) linked list b) datastructer c) database d) preprocessor

616


What do you mean by dynamic memory allocation in c?

637


Explain what is the heap?

612


Do you know the difference between malloc() and calloc() function?

599


How can you convert integers to binary or hexadecimal?

604






What is the difference between a free-standing and a hosted environment?

632


Explain modulus operator.

584


What is the mean of function?

640


Does c have class?

601


what is reason of your company position's in india no. 1.

1767


How to find a missed value, if you want to store 100 values in a 99 sized array?

803


How many types of arrays are there in c?

585


What is an operator?

649


What is anagram in c?

510


a single linked list consists of nodes a to z .print the nodes in reverse order from z to a using recursion

2324