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...
Share
We have discussed introduction to operators in C and Arithmetic Operators. In this article, Relational and Logical Operators are discussed.
Relational Operators:
Re...
Share
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. ...
Share
The order of operands of logical operators &&, || are important in C/C++.
In mathematics, logical AND, OR, etc… operations are commutative. The result ...
Share
What will be the output of the following program?
#include<stdio.h>
int main()
{
   int i = 10;
   printf("%d&q...
Share
Stringizing operator (#)
This operator causes the corresponding actual argument to be enclosed in double quotation marks. The # operator, which is generally called th...
Share
Operators are the foundation of any programming language. Thus the functionality of C/C++ programming language is incomplete without the use of operators. We can de...
Share
Unary operator: are operators that act upon a single operand to produce a new value.
Types of unary operators:
unary minus(-)
increment(++)
decrement(- -)
NOT(!)
Ad...
Share
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 '...
Share
Consider below C++ program and predict its output.
printf("%d %d %d", i, ++i, i++);
The above invokes undefined behaviour by referencing ...
Share