Welcome To Tutorialspoint.dev
Officially launched 18th May 2019

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

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

# 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)&#xA0; 2) ...

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

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

# Order of operands for logical operators

The order of operands of logical operators &amp;&amp;, || are important in C/C++. In mathematics, logical AND, OR, etc&#x2026; operations are commutative. The result ...

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

# A comma operator question

Consider the following C programs. // PROGRAM 1 #include&lt;stdio.h&gt; &#xA0;&#xA0; int main(void) { &#xA0;&#xA0;&#xA0;&#xA0;int a = 1, 2, 3; &#xA0;&#x...

# Increment (Decrement) operators require L-value Expression

What will be the output of the following program? #include&lt;stdio.h&gt; int main() { &#xA0;&#xA0;&#xA0;int i = 10; &#xA0;&#xA0;&#xA0;printf(&quot;%d&q...

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