--%>

Uses of BYTE, WORD and DWORD

Write a program that shows the uses of BYTE, WORD and DWORD?

E

Expert

Verified

BYTE, WORD and DWORD are the data types that are used for a specific length instead of the target platform.

a. It contains the complexity to write the program with it as it needs header files to be used.

b. It make available portability with the code and also with different hardware platforms on different compilers.
#include <stdint.h>
typedef uint8_t BYTE;
typedef uint16_t WORD;
typedef uint32_t DWORD;

c. DWORDs: It can also be known as Double WORDs and used as a data type, defined as unsigned 32 bit.

d. WORDs: It is used as a Single word and defined as unsigned 16 bit values. WORDs are machine independent which are used for the programming purpose.

e. BYTEs are usually defined as unsigned 8-bit values.

   Related Questions in Programming Languages

  • Q : Components of ASP.NET AJAX architecture

    Name the components of ASP.NET AJAX architecture?

  • Q : Explain Fully qualified class name

    Fully qualified class name: The name of a class, comprising any package name and including class name. The class outline is as follows:     package oddments;    class Outer

  • Q : Is a XML replacing HTML Is a XML

    Is a XML replacing HTML?

  • Q : Determining group ID of new file

    Explain various options available in order to determine the group ID of new file?

  • Q : Explain functionality or an API needs

    The application I am creating needs having access to functionality or an API that use needs the Nokia Vendor ID. For my application how can I have this Nokia VID?

  • Q : What is Bit Bit : It is a binary digit

    Bit: It is a binary digit that can take on two possible values: 0 and 1. The bits are basic building block of both data and programs. Computers regularly shift data around in multiples of eight-bit units (that is, bytes for the sake of effectiveness).

  • Q : Assembly program that reads in five

     I need to write assembly program that reads in five numbers from the user. The user can then be prompted for one of the following pieces of information to be computed and returned: . the mean of the five numbers; . the largest number in the set; . the smallest number in the set; . t

  • Q : What is SLAM SLAM is a Microsoft

    SLAM is a Microsoft project that blurs the line between static analysis and model checking and deductive reasoning. The main goal of SLAM is to check temporal safety properties of C programs (it actually checks that a program correctly uses the interf

  • Q : Passing by address or reference Passing

    Passing by address or reference: In this technique no separate memory build for formal variables that is, formal variables share similar location of actual variables and therefore any change on formal variables automatically reflected back to real var

  • Q : What is Common Gateway Interface Common

    Common Gateway Interface: The Common Gateway Interface (abbreviated as CGI) is a standard which permits Web clients to interact with programs on Web server. The CGI script is on the server and is able to process arguments or input from a client, and r