Mastering C++ 2025 – 400 Free Practice Questions to Pass the Exam

Question: 1 / 565

What does the '$' symbol indicate in a makefile?

The start of a comment

A variable or macro expansion

The '$' symbol is used for variable or macro expansion in a makefile. This means that it acts as a placeholder for a value that can be defined and then used throughout the makefile. This is different from the other options because option A is the pound sign '#' and is used for comments, option C is the colon '' and is used to separate the section of target and dependencies, and option D is the dash '-' which is used to indicate the shell command to be executed. Therefore, the correct answer is B as it is the only option that accurately describes the purpose of the '$' symbol in a makefile.

Get further explanation with Examzify DeepDiveBeta

The beginning of a new target

An optional command argument

Next Question

Report this question

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy