Welcome To Tutorialspoint.dev
Officially launched 18th May 2019

# 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...

# 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...

# 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 &apos;x&apos; is 0, Assign value &apos;a&apos; to variable &apos;...

# 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...

# 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 &quot;ptr&quot; that holds // address of an ...

# 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 (+, ++, &#x2013;, -, .. etc). Sum of two bits can...

# 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...