Ad Home

Magazine

Random Posts

Videos

Recent Posts

Culture

Saturday 23 September 2017

What Is Class In C++.?


A class in C++ is a user defined type or data structure declared with keyword class that has data and functions (also called methods) as its members whose access is governed by the three access specifiers private, protected or public (by default access to members of a class is private).

Tuesday 22 August 2017

Monday 21 August 2017

What Is Relational Operators...?


Relational Operators

There are following relational operators supported by C++ language
Assume variable A holds 10 and variable B holds 20, then:
OperatorDescriptionExample
==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



There are following arithmetic operators supported by C++ language:
Assume variable A holds 10 and variable B holds 20, then:
OperatorDescriptionExample
+Adds two operandsA + B will give 30
-Subtracts second operand from the firstA - B will give -10
*Multiplies both operandsA * B will give 200
/Divides numerator by de-numeratorB / A will give 2
%Modulus Operator and remainder of after an integer divisionB % A will give 0
++Increment operator, increases integer value by oneA++ will give 11
--Decrement operator, decreases integer value by oneA-- will give 9

What is Operators..


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....


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...


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>
#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.....


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 ...?



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.

Tuesday 15 August 2017