C++ Programming Code Examples
C++ > Visual C++ 5.0 Standard C++ Library Code Examples
C Count Trailing Zeros in a Binary Number
C language input any number from user and count number of trailing zeros in the given number using bitwise operator. How to find total number of trailing zeros in any given...
C++ Simple Calculator Code for Beginners
Write a simple C++ program which have four different functions for "basic operations" like addition, subtraction, division, multiplication. It should be menu based asking user to enter
Removing All Characters Except Alphabets
This program takes a string from the user and stored in the Variable line. The, Within the for loop, each character in the string is checked if it is an alphabet or not. If any character inside
C++ Object Oriented Programming (OOP)
(OOP) is a "Programming Paradigm" that is based on the concept of objects. An object is a "Data Structure" that contains data (fields) and functions. And Objects are instances of
Find Armstrong Numbers between 1 to N
The Armstrong Number is a n-digit number that is equal to the sum of nth power of its digits. 407 = 4^3 + 0^3 + 7^3 = 407 is. Input upper limit to print Armstrong number from
Check the Number is Prime or Not in C++
To check the number is a "prime number" or not a prime number in C++, enter a number and 'start checking' for prime number. If the number is divisible by 2 to one less than that
Simple Singly Linked List Programs in C++
In C++, Linked list is a linear collection of data elements, called nodes, each pointing to the next node by means of a pointer. So this is a data structure consisting of a group of nodes
C Program Code Calculate Simple Interest
C code example to input principle amount in some variable say principle and input time in some variable say time. Input rate in some variable say rate. Find simple interest using