Section 1

Preview this deck

Preprocessor Statements

Front

Star 0%
Star 0%
Star 0%
Star 0%
Star 0%

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Active users

0

All-time users

0

Favorites

0

Last updated

6 years ago

Date created

Mar 1, 2020

Cards (17)

Section 1

(17 cards)

Preprocessor Statements

Front

Preprocessor directive tells the preprocessor to include the contents of a file in the program Example - including header for input output statements #include <iostream>

Back

The execution of program starts in

Front

the main function

Back

main () function

Front

it is main function of c++

Back

loop directives

Front

There are two important loop directives that are used in conjunction with all loop types in C ++- the break and continue directives.

Back

else

Front

by using the else keyword to introduce an alternative statement. Its syntax is: if (condition) statement1 else statement2

Back

procedure

Front

is a finite sequence of well defined instructions, each of which can be carried out in a finite amount of time

Back

std

Front

its library

Back

variable

Front

is a symbolic name assigned to the data item

Back

flowchart

Front

flowchart is a type of diagram that represents an algorithm or process

Back

arrays

Front

Arrays are special variables which can hold more than one value using the same variable, using an index. Arrays are defined in a very straightforward syntax: int numbers[10];

Back

Algorithm

Front

An algorithm is a step by step procedure to solve the problem

Back

while loops

Front

While loops are similar to for loops, but have less functionality. A while loop continues executing the while block as long as the condition in the while holds. For example, the following code will execute exactly ten times:

Back

namespace std

Front

library namespace

Back

Functions include

Front

declarations, statements and expressions

Back

if

Front

The if keyword is used to execute a statement or block, if, and only if, a condition is fulfilled. Its syntax is: if (condition) statement

Back

Functions are started and closed with

Front

brackets { }

Back

for loops

Front

For loops supply the ability to create a loop - a code block that runs multiple times. For loops require an iterator variable, usually notated as i.

Back