Welcome To Tutorialspoint.dev
Officially launched 18th May 2019
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...
Bit Magic C C-Operators

Operators in C Set 2 (Relational and Logical Operators)

We have discussed introduction to operators in C and Arithmetic Operators. In this article, Relational and Logical Operators are discussed. Relational Operators: Re...
C C++ GFacts

Operands for sizeof operator

In C, sizeof operator works on following kind of operands: 1) type-name: type-name must be specified in parentheses. sizeof (type-name)  2) ...
Bit Magic C C++

Bitwise Operators in C/C++

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

Result of comma operator as l-value in C and C++

Using result of comma operator as l-value is not valid in C. But in C++, result of comma operator can be used as l-value if the right operand of the comma operator is...
C C++ C-Operators

Order of operands for logical operators

The order of operands of logical operators &&, || are important in C/C++. In mathematics, logical AND, OR, etc… operations are commutative. The result ...
C C Basics C-Operators

sizeof operator in C

Sizeof is a much used operator in the C programming language. It is a compile time unary operator which can be used to compute the size of its operand. The result o...
C C-Operators C

A comma operator question

Consider the following C programs. // PROGRAM 1 #include<stdio.h>    int main(void) {     int a = 1, 2, 3;  &#x...
C C++ C-Operators

Increment (Decrement) operators require L-value Expression

What will be the output of the following program? #include<stdio.h> int main() {    int i = 10;    printf("%d&q...
C Quiz C-Operators cpp-operator

Interesting facts about Operator Precedence and Associativity in C

Operator precedence determines which operator is performed first in an expression with more than one operators with different precedence. For example 10 + 20 * 30 is ...

Subscribe to Our Newsletter