by Dinesh Thakur Category: Operator

C++ provides a short form when a variable is incremented, decremented etc. For example

 
by Dinesh Thakur Category: Operator

In addition to the operators like arithmetic operators, relational operators, logical operators, the conditional operator and assignment operators that most of the languages support, C++ provides various new operators that are given in Table

 
by Dinesh Thakur Category: Operator

The Precedence Operator Specifies in a Expression Which Operator will Execute first, when there are Many Operators in an Expression. So that the Operator Precedence defines the Sequence or the Way for Performing the Operations of the Operators.

 
by Dinesh Thakur Category: Operator

All the Above Operators are Called as Binary Operators because they takes two Operands for Performing an Operation. But the Increment and decrement operators are called as Unary because they takes only one operand For Performing an Operation This Operator Contains ++ for Increment and -- for Decrement.

 
by Dinesh Thakur Category: Operator

While We are Executing an Arithmetic Statement Which was too Large and it Contains So Many Operators then the problem is how the Statements will be Executed and in what order means.

 
by Dinesh Thakur Category: Operator

An operator is a symbol which helps the user to command the computer to do a certain mathematical or logical manipulations. Operators are used in C++ language program to operate on data and variables. C++ has a rich set of operators which can be classified as



 
by Dinesh Thakur Category: Operator

When an operator is overloaded, it takes on an additional meaning relative to a certain class. But it can still retain all of its old meanings.

 
by Dinesh Thakur Category: Operator

 

A global variable is one whose value can be used anywhere in the program. Its value can be used in the Main() function and all other functions in the program. However, a local variable is one whose value is local to the function i.e. its value can be used in that particular function only where it is declared. A global variable is defined before the Main() function. Same name can be given to local and global variables. For example in the following program segment

 
by Dinesh Thakur Category: Control Structures

Continue statement is used for continuing a loop when an unexpected condition occurs. Basically this statement helps in passing control to the beginning of the loop.

 
by Dinesh Thakur Category: Control Structures

The statement tests the value of a variable against a list of integer or character constants. If the variable matches any of the constants, statements associated with that constant (case) are executed. If there is more than one statement following any case, the statements are enclosed in curly brackets. Value of the switch variable should be provided before the switch statement.

 
by Dinesh Thakur Category: Control Structures

                                Sum-of-Series

 
by Dinesh Thakur Category: Control Structures

This function causes the program to terminate from any portion of the program and does not have any return value. It has only one argument whose value is returned to the operating system when the program is terminated. This function is included in the <stdlib.h> header file. Hence this header file must be included in the beginning of the program.



 
by Dinesh Thakur Category: Control Structures

The desired accuracy is upto 6 decimal places. The formula for finding a real root of an equation f(x) = 0 is given by

 
by Dinesh Thakur Category: Control Structures

Jump statements are used to alter the flow of control unconditionally. That is, jump statements transfer the program control within a function unconditionally. The jump statements defined in C++ are break, continue, goto and return. In addition to these jump statements, a standard library function exit () is used to jump out of an entire program.

 
by Dinesh Thakur Category: Control Structures

The statements that cause a set of statements to be executed repeatedly either for a specific number of times or until some condition is satisfied are known as iteration statements. That is, as long as the condition evaluates to True, the set of statement(s) is executed. The various iteration statements used in C++ are for loop, while loop and do while loop.

 

Page 4 of 18



About Dinesh Thakur

Dinesh ThakurDinesh Thakur holds an B.SC (Computer Science), MCSE, MCDBA, CCNA, CCNP, A+, SCJP certifications. Dinesh authors the hugely popular blog. Where he writes how-to guides around Computer fundamental , computer software, Computer programming, and web apps. For any type of query or something that you think is missing, please feel free to Contact us.