As already known character known character range is between -128 to 127 or 0 to 255. This point has to be kept in mind while… Read More »
The Boolean data type is one of the primitive data types in both C++ and Java. Although, it may seem to be the easiest of… Read More »
The ISO/ANSI C++ Standard has added certain new data types to the original C++ specifications.They are provided to provide better control in certain situations as… Read More »
Wide char is similar to char data type, except that wide char take up twice the space and can take on much larger values as… Read More »
Consider the below C++ program and predict the output. The output of above program is false if the “IEEE754 32-bit single float type” is used… Read More »
C/C++ has very loose definitions on its basic integer data types (char, short, int, long, and long long). The language guarantees that they can represent… Read More »
Most of the times, in competitive programming, there is a need to assign the variable, the maximum or minimum value that data type can hold,… Read More »
What is NaN ? NaN, acronym for “Not a Number” is an exception which usually occurs in the cases when an expression results in a… Read More »
Type Inference refers to automatic deduction of data type of an expression in a programming language. Before C++ 11, each data type need to be… Read More »
Let us have a look at following code snippet in C/C++. Output: Infinite Loop Explanation: We know that the size of the character variable is… Read More »
Although polymorphism is a widely useful phenomena in C++ yet it can be quite complicated at times. For instance consider the following code snippet: It… Read More »
In C, it is possible to have array of all types except following. 1) void. 2) functions.
Enumeration (or enum) is a user defined data type in C. It is mainly used to assign names to integral constants, the names make a… Read More »
Predict the output of following C program.
Predict the output of following program: