🎴 Flashcard Mode

SAS and C Programming Fundamentals

Card1 / 18
Mastered0
Review0
QuestionClick to flip

void main() { ; }

AnswerClick to flip back
A
Will Compile but no Output
💡 Explanation:

An empty function with just a semicolon is valid in C (as a null statement). While void main() is non-standard (standard C requires int main), many compilers accept it. The code compiles and runs, producing no output because there are no printf statements.

Change Mode