Professional Documents
Culture Documents
Pre-Processor Statements in The Code of Programs Are Always Preceded by A Hash Sign (#)
Pre-Processor Statements in The Code of Programs Are Always Preceded by A Hash Sign (#)
Firstly, I would refer a few great books and secondly, I would tell her to consult the
Professor.
2. Yes
3. Pre-processor statements in the code of programs are always preceded by a hash sign (#).
4. All statements in C++ are terminated using a semicolon(;).
5.
C // This is a simple program that does nothing useful.
P #include <iostream>
P #include <cmath>
C //#include <algorithm>
int main() {
std::cout << "#include <iostream>"<< "allows me to print to the
console"
<< std::endl;
C //cout << "#include <algorithm> gives me algorithms"<< std::endl;
return 0;
}
C /* This is the end of file.*/
6. Any sequence of decimal digits that has a decimal point (period) somewhere is considered a
floating-point literal while Any sequence of decimal digits not starting with a 0 is interpreted
as an integer literal, possibly prefixed with either + or -.
10. Function declaration: A statement that tells the computer that a function with a specific
name will be used. The compiler will use this information to ensure that the function is
properly defined and used.
Function definition: The description of what a function is to do, usually including the
function declaration without the semicolon followed by a block of statements. When the
function is called, it is the block of statements following the function definition that will be
executed in the given order.
11. Function declaration tells the compiler that a function with a specific name and 0 or more
parameters and their data types will be used. The compiler will use this information to
ensure that the function is properly defined and used.
12. int one(); //function declarations
bool is_one( int value ); //function declarations
int main(); //function declarations
return 1;