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 Final class Final class : This

    Final class: This is the class with final reserved word in its header. A final class might not be extended by the other class.

  • Q : Define Deep copy Deep copy : It is a

    Deep copy: It is a copy of an object in which copies of all the object's sub-components are also prepared. The resultant object may, in effect, be a clone of the novel.

  • Q : ASP.NET Session handling How to set

    How to set Session time out in ASP.NET. I tries changing in config file but still facing issue. Please help..

  • Q : Describe object-oriented programming

    Briefly describe object-oriented programming (OOP)?

  • Q : Explain Infinite loop Infinite loop :

    Infinite loop: The loop whose termination test never computes to false. At times this is a deliberate act on the portion of the programmer, employing a construct like:         whi

  • Q : What is Bridging method Bridging method

    Bridging method: A method which offers a bridge between methods of a class's public interface and its private implementation. Bridging methods will usually contain non-public visibility.

  • Q : Define Bogor Bogor (Robby, Dwyer, and

    Bogor (Robby, Dwyer, and Hatcliff 2006) is an extensible software model-checking framework which includes: Software model checking algorithms Visualizations A user interface designed to

  • Q : Define Heap Abstractions Heap

    Heap Abstractions: The class abstractions that we discussed above are obtained by abstracting each field of base type. The number of instances of that particular class still needs to be bounded; this results in an under-approximation that is still use

  • Q : System Architecture for Windows

    Tell me about the System Architecture for Windows Programming?

  • Q : Explain the signing mandatory within

    Explain the signing mandatory within S60 3rd Edition.

©TutorsGlobe All rights reserved 2022-2023.