write a progam to compare the string using switch case?
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 |
Explain the use of function toupper() with and example code?
What is meant by recursion?
Write a function that will take in a phone number and output all possible alphabetical combinations
What is structure data type in c?
What is a pointer variable in c language?
what are the advantages of a macro over a function?
Difference between exit() and _exit() function?
program to find a smallest number in an array
Why is conio.h not required when we save a file as .c and use clrscr() or getch() ?
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?
In C programming, what command or code can be used to determine if a number of odd or even?