Skip to content

Tag Archives: C-Operators

Pre-requisite:Bitwise Operators in C/ C++Bitwise Operators in Java The bitwise complement operator is a unary operator (works on only one operand). It takes one number… Read More
Bitwise operators are operators (just like +, *, &&, etc.) that operate on ints and units 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
In C/C++, Increment operators are used to increase the value of a variable by 1. This operator is represented by the ++ symbol. The increment… 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

Start Your Coding Journey Now!