Set-26 C MCQ

C MCQ Set-8 : Multiple Choice Questions in C Set-8

1. What is the output of C Program.? int myshow(int);void main(){myshow(5);myshow(10);} int myshow(int b){printf(“Received %d, “, b);} A) Received 5, Received 10,B) Received 10, Received 5,C) Received 0, Received 0,D) Compiler error Ans:A 2. What is the output of code given below? #include <stdio.h>int main(){int i=1;for(;;){printf(“%d”,i);if(i=5)break;}} A)1 2 3 4 5B)1C)1 infinite timesD)Compilation error Ans:B …

C MCQ Set-8 : Multiple Choice Questions in C Set-8 Read More »