Welcome To Tutorialspoint.dev
Officially launched 18th May 2019

# Smallest of three integers without comparison operators

Write a program to find the smallest of three integers, without using any of the comparison operators. Let 3 input numbers be x, y and z. Method 1 (Repeated Subtract...

# What are the differences between bitwise and logical AND operators in C/C++?

A Bitwise And operator is represented as &#x2018;&amp;&#x2019; and a logical operator is represented as &#x2018;&amp;&amp;&#x2019;. Following are some basic differen...

# Bitwise Operators in C/C++

In C, following 6 operators are bitwise operators (work at bit-level) &amp; (bitwise AND) Takes two numbers as operands and does AND on every bit of two numbers. ...

# Write you own Power without using multiplication(*) and division(/) operators

Method 1 (Using Nested Loops) We can calculate power by using repeated addition. For example to calculate 5^6. 1) First 5 times add 5, we get 25. (5^2) 2) Then 5 ti...

# Program to find remainder without using modulo or % operator

Given two numbers &#x2018;num&#x2019; and &#x2018;divisor&#x2019;, find remainder when &#x2018;num&#x2019; is divided by &#x2018;divisor&#x2019;. The use of modulo o...

# Decimal to binary conversion without using arithmetic operators

Find the binary equivalent of the given non-negative number n without using arithmetic operators. Examples: Input : n = 10 Output : 1010 Input : n = 38 Output : 1001...

# Implement *, – and / operations using only + arithmetic operator

Given two numbers, perform multiplication, subtraction and division operations on them, using &#x2018;+&#x2019; arithmetic operator only. Recommended: Please try you...

# Remove brackets from an algebraic string containing + and – operators

Simplify a given algebraic string of characters, &#x2018;+&#x2019;, &#x2018;-&#x2018; operators and parentheses. Output the simplified string without parentheses. Exa...