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…
Programming
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…
Hexadecimal to Binary conversion Each hex digit is in the range of [0-F]. To represent a hex digit, 4 bits are required. For example, have a look at the below combinations. Now, let’s consider the following binary value 52F To…
Decimal to binary As shown in the above statement, when we assign a decimal value to a variable, first the value is converted to binary from decimal value, and later it will be stored in computer memory space. Let’s see…
Octal to binary: We know that Octal values are base 8 values and we need 3 bits to represent each octal digit. Octal values can be easily converted to binary values by replacing each octal digit with its equivalent binary…