--%>

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 : Define the term Runtime error Define

    Define the term Runtime error: It is an error which causes a program to finish whenever it is being run.

  • Q : Different compatibility types when

    What are the different compatibility types when creating a COM COMPONENT?

  • Q : Ways to select HTML Tag Instances

    Explain the different ways in order to select the HTML Tag Instances.

  • Q : Choice of technology in coding of game

    What are the choice of technologies while coding a game?

  • Q : New features in Microsoft AJAX library

    List the new features that are included in Microsoft AJAX library?

  • Q : How Does Run time data handled into QTP

    How Does Run time data i.e. Parameterization is handled within QTP?

  • Q : Kernel Mode Illustrate what are the

    Illustrate what are the different functions of Kernel Mode, interrupts and system calls?

  • Q : ArrayLists I. The Assignment The

    I. The Assignment The Bashemin Parking Garage contains a single lane that can hold up to ten cars.  Arriving cars enter the garage at the rear and are parked in the empty space nearest to the front.  Departing cars exit only from the front.  If a cu

  • Q : Explain the computer thread Explain the

    Explain the computer thread.

  • Q : Explain String String: It is an

    String: It is an instance of the String class. A string comprises of zero or more Unicode characters, and they are not mutable or immutable, once formed. The literal string is written between a pair of string delimiters ("), as:

    Discover Q & A

    Leading Solution Library
    Avail More Than 1439946 Solved problems, classrooms assignments, textbook's solutions, for quick Downloads
    No hassle, Instant Access
    Start Discovering

    18,76,764

    1924796
    Asked

    3,689

    Active Tutors

    1439946

    Questions
    Answered

    Start Excelling in your courses, Ask an Expert and get answers for your homework and assignments!!

    Submit Assignment

    ©TutorsGlobe All rights reserved 2022-2023.