Welcome To Tutorialspoint.dev
Officially launched 18th May 2019
C C++ cpp-data-types

Character arithmetic in C and C++

As already known character known character range is between -128 to 127 or 0 to 255. This point has to be kept in mind while doing character arithmetic. To understand...
C C-Operators cpp-operator

Operators in C Set 1 (Arithmetic Operators)

Operators are the foundation of any programming language. Thus the functionality of C language is incomplete without the use of operators. Operators allow us to perf...
C++ CBSE - Class 11 school-programming

Conditionally assign a value without using conditional and arithmetic operators

Given 4 integers a, b, y, and x, where x can only either 0 and 1 only. The ask is as follows: If 'x' is 0, Assign value 'a' to variable '...
C C++ cpp-operator

Set a variable without using Arithmetic, Relational or Conditional Operator

Given three integers a, b and c where c can be either 0 or 1. Without using any arithmetic, relational and conditional operators set the value of a variable x based o...
C C++ School Programming

Pointers in C and C++ Set 1 (Introduction, Arithmetic and Array)

Pointers store address of variables or a memory location. // General syntax datatype *var_name; // An example pointer "ptr" that holds // address of an ...
Bit Magic Mathematical Bitwise-XOR

Add two numbers without using arithmetic operators

Write a function Add() that returns sum of two integers. The function should not use any of the arithmetic operators (+, ++, –, -, .. etc). Sum of two bits can...
Arrays Dynamic Programming arithmetic progression

Longest Arithmetic Progression DP-35

Given a set of numbers, find the Length of the Longest Arithmetic Progression (LLAP) in it. Examples: set[] = {1, 7, 10, 15, 27, 29} output = 3 The longest arithmet...
C C++ CPP-Library

Ratio Manipulations in C++ Set 1 (Arithmetic)

One method of adding ratios is discussed in this article below Program to add two fractions The above method involves a tedious and lengthy task. But C++ has a heade...
PHP Web Technologies arithmetic progression

PHP program to print an arithmetic progression series using inbuilt functions

We have to print an arithmetic progressive series in PHP, between two given numbers a and b both including, with a given common arithmetic difference of d. Examples:...
Python python-modules

Python Arithmetic operations in excel file using openpyxl

Prerequisite: Reading & Writing to excel sheet using openpyxl Openpyxl is a Python library using which one can perform multiple operations on excel files like rea...

Subscribe to Our Newsletter