C++ Programming Code Examples
C++ > Mathematics Code Examples
C++ Program to Swap Two Numbers
Bitwise operators are used in C Language -
C Program Code Bitwise operators During computation, mathematical operations like: addition, subtraction, addition and division are converted to bit-level which makes and
Generate Random Subset by Coin Flipping -
Prints a 'subset' of the given array using coin flipping method. The time complexity of this algorithm is O(n). Takes the input of 'n' data element and prints a possible subset. that, it
Undirected Graph contains a Eulerian Path -
Check if this graph is Eulerian or not. Check if all non-zero degree vertices are connected. If graph has no "odd degree vertex", there is at least one Eulerian Circuit. And if graph as two
Program to Find the Biggest of 3 Numbers -
This program takes the 3 numbers & finds the biggest among all. Take the three numbers as input and Check the First number if it Greater than other two. Repeat the step 2 for other 2
Operator precedence & Associativity in C -
Function expression, array expression, unary minus, structure operators, increment and decrement, one's compliment, left and right shift, size of operator, pointer operators, type
C Language Calculating the Typing Speed -
Your time has started. Start typing. Hit Esc when done. Erase previous character instead of cursoring. Eliminate a special character that is printed for Esc. A Backspace followed
C Codes Multiply 2 Numbers use Function -
Create a user defined function product() that multiplies the numbers that we are passing to it during function call. This c function returns the product of these numbers. To understand
Find Maximum Minimum using Functions -
First give a meaningful name to our function. Say max() function is used to find maximum between two numbers. Second, we need to find maximum between two numbers. And