Data types of LONG, INT, SHORT, CHAR

To define the data types such as LONG, INT, SHORT, CHAR write a program?

E

Expert

Verified

The data type like LONG, INT, SHORT, CHAR does not describe the specific length and it can be determined only by the host machine.

a. It defines that the bits which are used with each of the types and the notation used for the above mentioned types.

b. The LONG is being referred by the prefix l whose upper-case is L.

c. INT is a variable that can be prefixed with i or ui that indicates the integer as well as unsigned integers.

d. CHAR is prefixed with c or uc which also mean character and unsigned character respectively.

e. The size of the data types are platform independent and the size of the variable also not matter.

f. They can be defined as:-

typedef long LONG;
typedef unsigned long ULONG;
typedef int INT;
typedef unsigned int UINT;
typedef short SHORT;
typedef unsigned short USHORT;
typedef char CHAR;
typedef unsigned char UCHAR;

   Related Questions in Programming Languages

  • Q : Explain Throw statement Throw statement

    Throw statement: It is a statement employed to throw an exception. For example:     throw new IndexOutOfBoundsException(i+" is too large.");

  • Q : Define way of kernel object outlive

    Explain the way of the kernel object outlive the process which created it.

  • Q : Explain main quality of unsuitable life

    What are the main quality consequences of selecting an unsuitable life cycle model for a software project?

  • Q : Who is liable for XML Who is liable for

    Who is liable for XML?

  • Q : Explain Virtual memory Virtual memory :

    Virtual memory: It is computer will comprise a limited amount of real memory accessible to it. Programs frequently need more memory than the quantity of real memory. Moreover, in a multiprogramming system, various processes will be competing for simil

  • Q : Explain Exclusive-or operator

    Exclusive-or operator: An exclusive-or operator (^) is both a Boolean operator and the bit manipulation operator. The Boolean version provides the value true when only one of its operands is true; or else it offers the value false. Likewise, the bit m

  • Q : What is Reduce Concurrency Reduce

    Reduce Concurrency: From a model-checking perspective, the searched state space consists of all possible thread-state combinations, which implies that the level of concurrency has the biggest impact on state space size. As a consequence, reducing conc

  • Q : What is Single inheritance Single

    Single inheritance: In Java, a class might not extend more than one class. It means that Java has a single inheritance model for the class inheritance.

  • Q : Examples in Threading in Java I need

    I need urgent help in Examples of Threading in Java

  • Q : What is Datagram Datagram : It is a

    Datagram: It is a packet of information passed between the two communicating procedures across a network. Both the Transmission Control Protocol (abbreviated as TCP) and the User Datagram Protocol (abbreviated as UDP) are indirectly comprised in sendi

©TutorsGlobe All rights reserved 2022-2023.