The way the break is used to take control out of switch and continue to take control of the beginning of the switch?
Can we use a switch statement to switch on strings?
We want to test whether a value lies in the range 2 to 4 or 5 toCan we do this using a switch?
Point out the error, if any in the for loop.
#include<stdio.h> int main() { int i= for(;;) { printf("%d\n", i++); if(i> break; } return}
Which of the following statements are correct about the below program?
#include<stdio.h> int main() { int i =j = if(i =&& if(j = printf("Have a nice day"); return}
A short integer is at leastbits wide and a long integer is at leastbits wide.
By default, the data type of a constant without a decimal point is int, whereas the one with a decimal point is a double.
Point out the error, if any in the program.
#include<stdio.h> int main() { int a = switch(a) { } printf("This is c program."); return}
#include<stdio.h> int main() { int i =j = if(i % 2 = j % printf("IndiaBIX\n"); return}
If scanf() is used to store a value in a char variable then along with the value a carriage return(\r) also gets stored it.
#include<stdio.h> int main() { int P = switch(P) { case printf("Case 1"); case printf("Case 2"); break; case P: printf("Case 2"); break; } return }
#include<stdio.h> int main() { int i = switch(i) { printf("This is c program."); case printf("Case1"); break; case printf("Case2"); break; } return}
What will be the output of the program?
#include<stdio.h> int main() { int x =y = if(!(!x) && x) printf("x = %d\n", x); else printf("y = %d\n", y); return}
#include<stdio.h> int main() { int k, num = k = (num <?: printf("%d\n", num); return}
What will be the output of the program, if a short int is 2 bytes wide?
#include<stdio.h> int main() { short int i = for(i<=5 && i>=-++i; i> printf("%u,", i); return }
Which of the following statements are correct about the program?
#include<stdio.h> int main() { int x =y = if(x == y) printf("x is equal to y\n"); else if(x > y) printf("x is greater than y\n"); else if(x < y) printf("x is less than y\n") return}
The modulus operator cannot be used with a long double.
#include<stdio.h> int main() { int i = switch(i) { case printf("Case1"); break; case 1*2+ printf("Case2"); break; } return }
Point out the error, if any in the while loop.
#include<stdio.h> int main() { int i= while() { printf("%d\n", i++); if(i> break; } return }
#include<stdio.h> int main() { int i= switch(i) { default: printf("This is default\n"); case printf("This is case 1\n"); break; case printf("This is case 2\n"); break; case printf("This is case 3\n"); } return}
Please disable the adBlock and continue. Thank you.