Topic / 110 questions

C Language MCQs

Page 4 of C Language multiple-choice questions with answers. Tap an option to check yourself.

Page 4 of 6

Advertisement
Question 66 C Language

Which condition must hold for strcat(dest, src) to work correctly?

Correct answer A. dest must hold a null-terminated string and have room for both strings plus one null byte

Open question
Advertisement
Advertisement
Question 80 C Language

In the C statement a = b = c = 4;, why do all three variables receive the value 4?

Correct answer B. Assignment associates right to left, so c = 4 is evaluated first and its value is assigned onward

Open question