CPP

46
1598 reads

February 15, 2013

Fibonacci Number


This example prints the nth Fibonacci number.

34
1503 reads

February 15, 2013

Binary operators & Implicit Conversions


This example shall be giving you thorough knowledge of the process of execution on arithmetic operators, how the data type are processed and how the arithmetic operations are performed.

82
1660 reads

February 15, 2013

Elementary Data Types for Arithmetic operations


Elementary data types for arithmetic operations are int & float.
Integers (= whole numbers) have no fractional part or decimal point. Floating point numbers have a decimal point or mantissa and

48
1646 reads

February 14, 2013

Prime Number


A prime number (or a prime) is a natural number greater than 1 that has no positive divisors other than 1 and itself. For example, 5 is a prime number as it is only divisible by 1 and 5.

58
1641 reads

February 14, 2013

Armstrong Number


An Armstrong number is an integer such that the sum of the cubes of its digits is equal to the number itself. For example, 371 is an Armstrong number since 3^3 + 7^3 + 1^3 = 371.

36
1564 reads

February 14, 2013

Palindrome Number


A palindromic number or numeral palindrome is a number that remains the same when its digits are reversed. Like 16461, for example, it is "symmetrical".

37
359 reads

February 14, 2013

Different data type arguments


Function overloading or method overloading is a feature found in various programming languages such as Ada, C++, C#, D, and Java, that allows creating several methods with the same name which differ f

25
373 reads

February 14, 2013

Different number of arguments


Function overloading or method overloading is a feature found in various programming languages such as Ada, C++, C# and Java, that allows creating several methods with the same name which differ from

33
324 reads

February 14, 2013

Overload functions


Function overloading or method overloading is a feature found in various programming languages such as C++, C# and Java, that allows creating several methods with the same name which differ from each

51
1554 reads

February 14, 2013

Private access specifier


A private member variable or function cannot be accessed, or even viewed from outside the class. Only the class and friend functions can access private members.