Skip to content

Tag Archives: cpp-operator

We can find size of an array using sizeof operator as shown below. // Finds size of arr[] and stores in 'size' int size =… Read More
Scope resolution operator is for accessing static or class members and this pointer is for accessing object members when there is a local variable with… Read More
We have discussed Introduction to Operators in C where we got an overall idea of what types of Operators, C and C++ support and its… Read More
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… Read More
  Sizeof is a much used operator in the C or C++. It is a compile time unary operator which can be used to compute… Read More
A Bitwise And operator is represented as ‘&’ and a logical operator is represented as ‘&&’. The following are some basic differences between the two… Read More
Predict the output of following program: Can % be used with floating point numbers in C++? #include <iostream> int main() {     float f = 9.9f,… Read More
In C, the following 6 operators are bitwise operators (work at bit-level)   The & (bitwise AND) in C or C++ takes two numbers as operands… Read More
Operator precedence determines which operator is performed first in an expression with more than one operators with different precedence.For example: Solve   10 + 20 *… Read More
Predict the output of following C programs.  C // PROGRAM 1 #include <stdio.h> int main(void) {     int arr[] = {10, 20};     int *p = arr;… Read More
In C, data type of result of comparison operations is int. For example, see the following program. #include<stdio.h> int main() {     int x = 10,… Read More

Start Your Coding Journey Now!