Skip to content

Tag Archives: cpp-data-types

In this article, we will discuss the int data type in C++. It is used to store a 32-bit integer.  Some properties of the int… Read More
A user-defined data types are designed by the user to suit their requirements, the compiler does not support automatic type conversions for such data types… Read More
Run-time Constant: These are the constants whose respective values can only be known or computed at the time of running of source code. Run time… Read More
typeid is an operator in C++. It is used where the dynamic type or runtime type information of an object is needed. It is included… Read More
Argument coercion is a feature of function prototypes by which the compiler implicitly converts the datatype of the arguments passed during the function call to… Read More
any is one of the newest features of C++17 that provides a type-safe container to store single value of any type. In layman’s terms, it… Read More
In one line, There is nothing in Java which is equivalent to typedef of C++. In Java, class is used to name and construct types… Read More
Data types are means to identify the type of data and associated operations of handling it. There are three types of data types: Pre-defined DataTypes… Read More
A type cast is basically a conversion from one type to another. There are two types of type conversion: Implicit Type Conversion Also known as… Read More
long is a keyword in Java that symbolises the Long datatype. The long data type is a 64-bit two’s complement integer with: Size: 64 bit… Read More
Setting the initial value of an object to zero is called the zero initialization. Syntax: static T object; Tt = {} ; T {} ;… Read More
What do you think happens when you use an uninitialized primitive data type? Well you may assume that the compiler should assign your primitive type… Read More
When we initialize a value by putting ‘0’ before a number, the number is treated as octal. For instance ’10’ is read as 10 but… Read More
Any datatype is used to store any type of value in a variable. Scripting languages like JavaScript, TypeScript provides any datatype functionality. C++ also provides… Read More
Uniform initialization is a feature in C++ 11 that allows the usage of a consistent syntax to initialize variables and objects ranging from primitive type… Read More