Typecasting or type conversion is converting an operand of one type to another type. Typecasting in C is performed in two different ways Implicit type conversion The C compiler automatically performs type conversion when an operation is performed on operands…
Compared to positive values, the way how negative values get stored in the computer is completely different. Most computers today, use2's complement binary form to store a negative value. Let’s see how it’ll work. consider, here I am storing -27…
In this article, we will discuss short and long-type modifiers. Short type modifier in C: Valid use of short type modifier in C: Invalid use of short type modifier in C Long Type modifier in C The size of the…
Type modifiers in C are used as a prefix to the datatypes to re-define the size & range of the datatype. Syntax: Example: unsigned int a; Based on their usage, type modifiers in C are classified into two categories: Category…
In floating-point representation, we have two types. They are Float: Variables declared with float datatype can able to store 32-bit decimal point value [e.g. 33.34], the representation of decimal-point in binary is completely different when compared with decimal to binary….
Variables declared with int data type can accommodate 32-Bit integer value i.e. 4BYTES. Signed integer varies from -2,147,483,648 to +2,147,483,647 i.e. 31 bits for data and the most significant bit will represent sign (+/-). Unsigned integer varies from 0 to…
Note: Before referring to this article, I recommend you to refer to my previous article i.e. ASCII charset. Variables declared with a char datatype can accommodate any symbol present in the ASCII character set and can be represented with an…
ASCII – American Standard Code For Information Interchange. Task-to-do: Please learn the below conversions : NOTE: No need to write a C program for the above. Just learn the mathematical procedures of these conversions.
Datatypes specify the “size“, “type of data” and the “maximum range” of value that an object can accommodate. Object – An object is a named region of storage. It might be a variable or array or structure instance. Classification of…
In the following program, we will see how to initialize the variables with decimal, octal & Hex values. Output: Explanation We must use 0, 0x notations as shown in the above example while initializing the octal and Hex values. To…