Skip to content

Tag Archives: cpp-operator

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… 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