--%>

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 : State the term snooping State the term

    State the term snooping?

  • Q : Explain UpdatePanel control Briefly

    Briefly explain about the UpdatePanel control.

  • Q : What is an Integer What is an Integer :

    What is an Integer: It is a negative or positive whole number. The primitive types are: short, byte, int and long are utilized to hold integer values in narrower or broader ranges.

  • Q : DOT Net namespace Explain the main

    Explain the main classes given by the .NET namespace to process the XML files.

  • Q : Message and method in programming

    Illustrate the basic difference between the message and method in programming?

  • Q : Explain the differences between HTML

    Explain the differences between HTML and XML?

  • Q : Perform Exception Handling with

    On occasion, some of Brewbean’s customers mistakenly leave an item out of a basket already checked out, therefore they create a new basket containing the missing items. Though they request that the baskets be combined and hence they are not charged extra shippin

  • Q : Explain Hot spot Hot spot : This is an

    Hot spot: This is an area in an image map with a specific significance. A program usually monitors movements of the mouse, and reacts according to the actions related with the hot spots over which it passes. This may comprise displaying various status

  • Q : Explain the relationship between XHTML

    Explain the relationship between XHTML and HTML?

  • Q : Abstract list domain The abstract list

    The abstract list domain is as shown: {empty, some, [d1], [d2],[ d1, d2], [d2, d1], all}. A) empty represents empty lists.

    Discover Q & A

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

    18,76,764

    1925053
    Asked

    3,689

    Active Tutors

    1420105

    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.