Tuesday, 22 August 2017
Monday, 21 August 2017
What Is Relational Operators...?
10:53 am studyhope
Relational Operators
There are following relational operators supported by C++ language
Assume variable A holds 10 and variable B holds 20, then:
Operator | Description | Example |
---|---|---|
== | Checks if the values of two operands are equal or not, if yes then condition becomes true. | (A == B) is not true. |
!= | Checks if the values of two operands are equal or not, if values are not equal then condition becomes true. | (A != B) is true. |
> | Checks if the value of left operand is greater than the value of right operand, if yes then condition becomes true. | (A > B) is not true. |
< | Checks if the value of left operand is less than the value of right operand, if yes then condition becomes true. | (A < B) is true. |
>= | Checks if the value of left operand is greater than or equal to the value of right operand, if yes then condition becomes true. | (A >= B) is not true. |
<= | Checks if the value of left operand is less than or equal to the value of right operand, if yes then condition becomes true. | (A <= B) is true. |
What is Arithmetic Operators
10:52 am studyhope
There are following arithmetic operators supported by C++ language:
Assume variable A holds 10 and variable B holds 20, then:
Operator | Description | Example |
---|---|---|
+ | Adds two operands | A + B will give 30 |
- | Subtracts second operand from the first | A - B will give -10 |
* | Multiplies both operands | A * B will give 200 |
/ | Divides numerator by de-numerator | B / A will give 2 |
% | Modulus Operator and remainder of after an integer division | B % A will give 0 |
++ | Increment operator, increases integer value by one | A++ will give 11 |
-- | Decrement operator, decreases integer value by one | A-- will give 9 |
What is Operators..
10:49 am studyhope
An operator is a symbol that tells the compiler to perform specific mathematical or logical manipulations. C++ is rich in built-in operators and provides the following types of operators:
- Arithmetic Operators
- Relational Operators
- Logical Operators
- Bitwise Operators
- Assignment Operators
- Misc Operators
This chapter will examine the arithmetic, relational, logical, bitwise, assignment and other operators one by one.
Wednesday, 16 August 2017
Object Code....
10:52 am studyhope
Object code is produced when an interpreter or a compiler translates source code into recognizable and executable machine code.
Object code is a set of instruction codes that is understood by a computer at the lowest hardware level. Object code is usually produced by a compiler that reads some higher level computer language source instructions and translates them into equivalent machine language instructions... As Like (0,1)
Source Code...
10:21 am studyhope
Source code is the fundamental component of a computer Program that is created by a programmer. It can be read and easily understood by a human being. When a programmer types a sequence of C Language statements into Windows Notepad, for example, and saves the sequence as a text file, the text file is said to contain the source code.
It is Source Code......! #include<iostream>
It is Source Code......! #include<iostream>
#include<conio.h>
int caal(int);
using namespace std;
int main()
{
int n,s;
cout<<"Enter valu =";
cin>>n;
s=caal(n);
cout<<s;
return 0;
}
Programming Language.....
10:11 am studyhope
A programming language is a formal language that specifies a set of instructions that can be used to produce various kinds of output. Programming languages generally consist of for a computer. Programming languages can be used to create programs that implement specific algorithms.
What Is C++ Programming Language ...?
9:56 am studyhope
C++ is an object-oriented programming (OOP) language that is viewed by many as the best language for creating large-scale applications. C++ is a superset of the C language.
A related programming language, Java, is based on C++ but optimized for the distribution of program objects in a network such as the Internet. Java is somewhat simpler and easier to learn than C++ and has characteristics that give it other advantages over C++. However, both languages require a considerable amount of study.
Subscribe to:
Posts (Atom)