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 |
print the table 5 in loops
What is the need of structure in c?
Can you please explain the difference between syntax vs logical error?
write a program that will print %d in the output screen??
Who is invented by c?
What are the disadvantages of c language?
what is the difference between class and unio?
what is the output of the following program and explain the answer #include<stdio.h> exp() { main(5) } main(int a) { printf("%d",a); return; }
what is the use of macro program
why we need function pointers?
Is fortran still used today?
If we have an array of Interger values, find out a sub array which has a maximum value of the array and start and end positions of the array..The sub array must be contiguious. Take the start add to be 4000. For Ex if we have an array arr[] = {-1,-2,-5,9,4,3,-6,8,7,6,5,-3} here the sub array of max would be {8,7,6,5} coz the sum of max contiguous array is 8+7+6+5 = 26.The start and end position is 4014(8) and 4020(5).
5 Answers Microsoft, Motorola,