🎴 Flashcard Mode

Software and Programming Basics

Card1 / 21
Mastered0
Review0
QuestionClick to flip

What will this piece of C code print on the screen?

Printf (“hello world”);

/*this is a comment
Printf (“hello again”); This is another comment*/
AnswerClick to flip back
A
Only “hello world”
💡 Explanation:

In C, the comment block starts with /* and ends with */. Everything between these markers is ignored by the compiler, so the second Printf statement is never executed.

Change Mode