Switch case MCQ 8 : Misplaced continue in switch case Problem Statement 8 : void main(){ int choice = 2 ; switch(choice) { case 1 : printf(“nAllas”); break; case 2 : printf(“nBabo”); continue; case 3 : printf(“nHurray”); break; }} Options : Guess the Output Babo Error : Misplaced continue Hurray Allas Select Switch Case Question(…)
Switch case MCQ 7 : No cases in switch case
Switch case 7 : Multiple Choice Questions in C Programming Problem Statement 7 : No cases in switch void main(){ int choice = 2 ; switch(choice) { }} Options : Is this program is error free Yes No Why ? Explanation : Though never required ,there can exist switch without case For more details ……(…)
Switch case 6 : Multiple Choice Questions in C Programming
Switch case 6 : Multiple Choice Questions in C Programming Problem Statement 6 : void main(){ int choice = 2 ; switch(choice); { case 1 : printf(“nAllas”); break; case 2 : printf(“nBabo”); break; case 3 : printf(“nHurray”); break; } printf(” Finally I am in main “);} Options : Guess the Output Finally I am in(…)
Switch case 5 : Multiple Choice Questions in C Programming
Switch case 5 : Multiple Choice Questions in C Programming Problem Statement 5 : Variables in case labels void main(){ int choice = 2 ; int Num = 3; switch(choice) { case 1 : printf(“nSachin Tendulkar is better than any other Cricketer in the World”); break; case Num : printf(“nI think , Variable is not(…)
Switch case 4 : Multiple Choice Questions in C Programming
Switch case 4 : Multiple Choice Questions in C Programming Problem Statement 4 : Is this program is Error free void main(){ int choice = 2 ; switch(choice) { case 1 : printf(“nYour Time Starts now”); break; case 7-8+3 : printf(“nWhy to Learn C Programming”); break; case 9/3 : printf(“nDon’t Use Pointer”); break; }} Options(…)
Switch case 3 : Multiple Choice Questions in C Programming
Switch case : Multiple Choice Questions in C Problem Statement 3 : void main(){ int choice = 1 ; int a = 2; switch(choice) { case 1 : printf(“nC Programming is Very Funny Language”); break; case 1 : printf(“n3 Idiots is Funny Movie”); break; case a : printf(“nMy name is Pritesh A Taral”); break; }}(…)
Switch case 2 : Multiple Choice Questions in C Programming
Switch case : Multiple Choice Questions in C Problem Statement 2 : void main(){ int choice = 1 ; switch(choice) { printf(“nI am in switch”); case 1 : printf(“nWhat are You Doing in Mumbai”); break; case 2 : printf(“nUS is Great Country”); break; case 3 : printf(“nWater turns into Gas”); break; }} Note : Every(…)
Switch case 1 : Multiple Choice Questions in C Programming
Switch case : Multiple Choice Questions in C Problem Statement 1 : void main(){ int choice = 7 ; switch(choice) { default : printf(“nI am in Default”); case 1 : printf(“nI am in case 1″); break; case 2 : printf(“nI am in case 2″); break; case 3 : printf(“nI am in case 3″); break; }}(…)
Which pointer require more memory space int or character pointer ?
Which pointer require more memory space int or character pointer ? Size of Pointer Variable does not depends upon data type Pointer variable only stores the address of the variable . Address of variable is of integer type So Size of Pointers variables of any type is 2 byte Bookmark & Share
What is the size of const Pointer variable in C ?
What is the size of const Pointer variable in C ? Pointer : Pointer is the variable that stores the address of another variable . How to calculate size of Const Pointer ? Size of Const Pointer : 2 bytes For more details … Bookmark & Share