C/C /C Multiple Choice Questions MCQs :- multiple choice questions and answers. e.g C/C MCQS,C/C Mock Tests , C/C Practice Papers ,C/C Sample Test,C/C Sample questions

Your Session ID :-Guest5032979

Question 1: Comment on the output of this C code? int main() { int a[5] = {1, 2, 3, 4, 5}; int i; for (i = 0; i < 5; i++) if ((char)a[i] == '5') printf("%d ", a[i]); else printf("FAIL "); }

The compiler will flag an error

Program will compile and print the output 5

Program will compile and print the ASCII value of 5

Program will compile and print FAIL for 5 times

Total MCQS Questions are 15 in this paper C Multiple Choice Questions
Search
Categories
R4R Team
R4R provides C/C Multiple choice questions and answers (C/C MCQs) .The questions on R4R.co.in website is done by expert team! Mock Tests and Practice Papers for prepare yourself.. Mock Tests, Practice Papers,C Multiple Choice Questions ,C/C MCQS,C/C Objetive choice questions and answers,C/C Multiple choice questions and answers,C/C objective, C/C questions , C/C answers,C/C MCQs questions and answers