Introduction to C++ and Tool

Use of Cout and Cin in C++?

cin is an object of the input stream and is used to take input from input streams like files, console, etc. cout is an object of the output stream that is used to show output. Basically, cin is an input statement while cout is an output statement. They also use different operators.


Explanatory statements can be included in the C++ code as programme comments. Anyone reading the source code will benefit from these remarks. All programming languages provide comments in some way. Single-line and multi-line comments are supported in C++. The C++ compiler ignores all characters available inside each comment. C++ comments start with /* and end with */. A comment can also start with //, extending to the end of the line.

C++ Data Types?

A data type specifies the type of data that a variable can store such as integer, floating, character etc. There are 4 types of data types in C++ language. Types Data Types Basic Data Type int, char, float, double, etc Derived Data Type array, pointer, etc Enumeration Data Type enum User-Defined Data Type structure

Increment and Decrement Operators?

The increment and decrement operators are unary operators that add or subtract one from their operand. Imperative programming languages are typically used to implement them. Each operator in C-like languages has two variants (pre- and post-) with slightly different semantics.

String Handling in C++?

C++ provides following two types of string representations − The C-style character string. The string class type introduced with Standard C++.

If-Else using raptor tool

Conditional Operator

Continue & Break Statement

Function Passing Parameters

Function Pass Parameters by Value and Refrence

Function Returning Value

Inline Function

Function Overloading

Function Default Parameters

Function Local and Global Variable

Difference between Array and Simple Variable

Array Example?

Reverse and Array elements

Pass Array to Function using Pointer

Array Lab manual

What is Character Pointer?

Pointer With Structure

Function Declaration, Definition and Call

In C++, what is a function declaration?
The name, return type, and parameters of a function are all specified in a function declaration. The body of the function is defined by a function definition. The C++ standard library includes a number of built-in functions that you may use in your application.

In CPP, how do you write a function?

There are two different kinds of functions: Functions of a Standard Library In C++, this is predefined. User-defined Users created the function.
Declaration of a C++ Function
greet is the name of the function ()
The function’s return type is void.
It has no arguments since the parenthesis is empty.
The body of the function is written inside

What is the C++ function call?

When a programme calls a function, control is passed from the calling programme to the called function. A called function performs a defined job and then returns programme control to the main programme when its return statement is performed or when its function-ending closing brace is reached.