C Programming Code Examples
C > Mathematics Code Examples
C Program to Check whether a given Number is Armstrong
Call Simple Programs for Functions in C++ -
A function is like a black box. It takes in input, does something with it, and then spits out an answer. We have some "terminology" to refer to functions: A function, call it f, and that uses
Printing ASCII Values of Characters in C++ -
Placing the number in the ch variable of char type to convert the ASCII value in equivalent character to print all the ASCII values of the characters as shown here in the c++ program
Get Lowest order or first set bit of number -
C Program Lowest order or first set bit of any number is the first bit set starting from left to right. Lowest order set bit of any odd number is 0 since first bit of any odd number is always
Implement Two Stacks using Single Array -
C Programming code implements two Stacks using a Single Array & Check for Overflow & Underflow. A Stack is a linear data structure in which a data item is inserted and deleted...
Assignment Operators in The C Language -
C Programming to assignment operators. An Assignment Operator is used for assigning a value to a variable. C code demonstrate the working of assignment operators. The most
The C++ Booth's Multiplication Algorithm -
"Multiply two Signed numbers" using Booth's algorithm. Booth's multiplication algorithm is a multiplication algorithm that multiplies two signed 'binary numbers' in two's complement
C++ language Simple Stack using Pointers -
A 'stack' is a basic "data structure" and can be defined in an 'Abstract', implementation-free manner, or it can be "Generally Defined" as a Linear List of items in which all additions and
C++ Template to Gets Maximum Number -
Templates are a feature of the C++ language that allows functions and classes to operate with generic types. A "simple C++ template" behaves same as normal function except the