answersLogoWhite

0

Platform dependent, use sizeof (int). You may want to use types int8_t, int16_t, int32_t or int64_t from inttypes.h,theirs sizes are predefined (1, 2, 4 and 8 bytes).

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

What is the memory size of integer pointer?

for C: sizeof (int), often 2 or 4 bytefor Java: 4 byte


How do you write a function which takes 2 arguments - a byte and a field in the byte and returns the value of?

bool F1(int byte,int pos) { return(byte & 1<<pos) } //pos -> position in the field // say byte is b1011 and pos is 2 then it will return value 0


What is byte addressable memory?

a byte is abasic storage unit in memory. when application program instructions and data are transferd to memory from storage devices. byte addressable memory refers to memory address that is accessed one byte (8 bits) at a time as opposed to 2 byte(16 bits), 4 byte(32 bits) or 8 byte(64 bits) addressable memory.


What is aligned address?

A memory address a, is said to be n-byte aligned when a is a multiple of n bytes (where n is a power of 2). In this context a byte is the smallest unit of memory access, i.e. each memory address specifies a different byte.


What is a byte?

byte">byte1. A group of binary digits or bits (usually eight) operated on as a unit.2. Such a group as a unit of memory size.No, byte is a noun.


What are the system requirements for language c?

1. byte-organised memory (every bytes of the memory has to be accessible) 2. support for every ASCII characters (0-127)


What is the address of the last byte of RAM in the Pep8 memory?

2 bytes or 16 bits


What is the advantage of using sjmp over ljmp?

SJMP is short jump. In this 2-byte instruction the first byte is opcode and second byte is relative address of target location. This can save some byte of memory in many applications where memory space is in short supply where as LJMP (Long Jump) is 3-byte instruction in which 1st byte is opcode and 2nd and 3rd byte represent the 16- bit address of target location.


What is short char in c language?

There is no such thing as "short char" You either mean char or short int. a char is a variable declaration that holds one character, usually 8 bits long (1 byte) short int (or simply short) is a 16 bit (2 byte) integer


When variable in c gets memory After declaration or initialization?

Definition. Example: extern int x1; /* declaration */ int x2; /* definition */ int x3= 2; /* definition with initialization */


How many nibbles are in a byte?

There are two nibbles in a byte.


Name 4 memory units in which memory of a storage device is measured?

As far as my knowledge goes, it is like this 1. The smallest memory measuring unit is BIT 2. 8 BITS = 1 BYTE 3. 1024 BYTES = 1 MEGA BYTE (MB) 4. 1024 MEGA BYTES = 1 GIGA BYTE (GB) 5. 1024 GIGA BYTES = 1 TERA BYTE (TB) and so on... these units are generally used in computers and peripherals! you!