# Articles [C & C++]

If...else can also be nested inside other if...else constructs.like we can put an if...else conditional construct inside another if...else also for further checking a different condition.here's an example to check largest of 3 numbers./* Header...

BINARY TREE Binary tree is a set of finite nodes which is either empty or consists of one or more nodes in which each node has at most two disjoint binary subtrees called left subtree or right subtree respectively. Thus we can say that there...

Binary Trees Traversals   Traversal of a binary tree is one of the most important operations required to be done on a binary tree. Traversing of a binary tree is a process of visiting every node in the tree exactly once. Thus it is necessary to...

Introduction As a programmer you will develop solutions to problems, solutions that transform given data (input) into required results (output). Generally this data is placed in secondary memory. Since the processor can only process the data that...

Introduction A data structure is the logical or mathematical model of a particular organization of data. Thus a data structure is defined by(i)    organizing data in a specific way(ii)    defining a set of operations performed on the data that...

Data Structures, C and C++ One especially important consideration is the choice of an algorithm description language. This choice actually depends on several factors, such as programmer background, programmer’s ability to express his views,...

Concept of a Data Type Data items are the physical symbols that represent information in the computer system. A computer program operates on data and produces an output. In a computer programming language (high-level programming language) each...

Structures The secondary data type, which associates with a set of similar data types, is array data type. We have already discussed array of ints, array of floats or array of char’s etc.  These set represent the characteristics of samedata type....

The following program to swap Two numbers without using temp variableint main(){int a=10,b=20;printf("before swapping a=%d...b=%d",a,b);a=a+b;b=a-b;a=a-b;printf("after swapping a=%d...b=%d",a,b);return 0;}

Interesting C++ Program With Explanation Program No.1 Raising a number n to a power p is the same as multiplying n by itself p times.Write a function called power ( ) that takes a double value for n and an int value for p, and returns the result...