Skip to content

Tag Archives: C-Operators

Bitwise operators are operators (just like +, *, &&, etc.) that operate on ints and uints at the binary level. This means they look directly… Read More
Prerequisite: Operator Overloading in C++, Types of Operator Overloading When an object calls an operator function by passing an argument and the returned value of… Read More
–> is called as “Goes to” in C/ C++ and compiles fine in every compiler including GCC and MSVN. This operator (–>) is not described… Read More
sizeof() is commonly used operator in the C or C++. It is a compile-time unary operator that can be used to compute the size of… Read More
The modulo operator, denoted by %, is an arithmetic operator.The modulo division operator produces the remainder of an integer division.  Syntax: If x and y… Read More
! is a type of Logical Operator and is read as “NOT” or “Logical NOT“. This operator is used to perform “logical NOT” operation, i.e.… Read More
The conditional operator is kind of similar to the if-else statement as it does follow the same algorithm as of if-else statement but the conditional… Read More
The dot (.) operator is used for direct member selection via object name. In other words, it is used to access the child object. Syntax:… Read More
C Language was not called C at the beginning. It has been named as C after passing many stages of evolution. Evolution of C:   ALGO… Read More
Assignment operators are used to assigning value to a variable. The left side operand of the assignment operator is a variable and right side operand… Read More
Given two numbers A and B. The task is to write a program to find the addition of these two numbers. Examples: Input: A =… Read More
The task is to write a program to find the largest number using ternary operator among:  Two Numbers Three Numbers Four Numbers Examples:  Input :… Read More
Pre-increment operator: A pre-increment operator is used to increment the value of a variable before using it in a expression. In the Pre-Increment, value is… Read More
Stringizing operator (#) This operator causes the corresponding actual argument to be enclosed in double quotation marks. The # operator, which is generally called the… Read More
Prerequisite : Operators in C Q.1 What is the output of this program? #include <iostream> using namespace std; int main() {     printf("value is = %d",… Read More