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 the argument of a function in c?
What is a constant?
What is the use of bitwise operator?
What are the uses of a pointer?
List the variables are used for writing doubly linked list program.
What is a floating point in c?
What are the advantages of c preprocessor?
write a program to generate address labels using structures?
Calculate the weighted average of a list of n numbers using the formula xavg = f1x1+f2x2+ ….+ fnxn where the f’s are fractional weighting factors, i.e., 0<=fi<1, and f1+f2+….+fn = 1
Differentiate call by value and call by reference?
State the difference between x3 and x[3].
What is struct node in c?
Explain what are the standard predefined macros?
In this assignment you are asked to write a multithreaded program to find the duplicates in an array of 10 million integers. The integers are between -5000,000 to 5000,000 and are generated randomly. Use 10 threads, each thread works on 1000,000 integers. Compare the time needed to accomplish the task with single thread of execution program. Do not include the time to fill the array with integers in the execution time.
disply the following menu 1.Disply 2.Copy 3.Append; as per the menu do the file operations 4.Exit