answersLogoWhite

0


Best Answer

Use data-type 'long long' or 'int64_t' (from inttypes.h)

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you make a 8 byte integer in C?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How many bytes is an integer variable?

It depends on the context. Each database and computer language define an "integer". In the C language an integer is defined by the hardware. It can vary from 2 to 8 bytes or more.


Why c takes integer 2 bytes java takes integer 4 byte and net takes integer 4 byte?

Because you are using a compiler (TurboC, most likely) which was developed some 25 years ago, for a 16-bit platform.


How many numbers can be stored in a 4-byte integer system?

If all four bytes are being used for its value (i.e. this is an unsigned integer) then you have 8 * 4 = 32 bits, so your range is from 0 to 2^32 (4,294,967,296) Remember, the size of various data types in C and C++ is architecture dependent. See limits.h (/usr/include/limits.h in Linux)


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


How do you store the data into byte in c?

There is not built-in 'byte' type in C, but you can define it: typedef unsigned char byte; byte bmin=0, bmax=255;


How do you combine four bytes of a character array into a single integer byte in C?

#include <inttypes.h> int32_t myint; char str [] = "Test"; myint = *(int32_t *)str;


What does a char store?

In JavaA char in Java is a 16-bit integer, which maps to a subset of Unicode.In C A char in C is an 8-bit integer, which maps to standard ASCII.Note that in both Java and in C you can use a char value like a normal integer type: char c = 48;


What is the memory size of integer pointer?

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


Where does negative ASCII value used?

There is no such thing as a negative ASCII value. ASCII values are always in the range 0-255. In C++, a char is defined as an unsigned integer of 8-bits in length (wide chars are unsigned integers of 16-bit length). Since they are unsigned, they can never be negative. C differs from C++ in that a C char is generally represented as a signed integer (typically 32-bits on a 32-bit system). However, when cast as a character, only the low-order byte is used, which effectively ignores the sign in the high-order byte. In other words, the absolute value is used, regardless of the sign. The same applies to wide characters.


How much memory is required to store a 'character' and how much is required to store a 'string'?

a character/byte as defined in the C programming language is one byte (8 bits). A string can be as short as one byte and can be as long as the physical memory limits can contain it.


Which take a string as input and find its length?

strlen is the C library function that accepts a pointer to a char array and returns an integer specifying the number of characters (in bytes) of the array. This function is usually not used any more, because it does not support multi-byte characters, such as UTF-8.


How many characters or symbols can be represented by one eight-bit byte?

it depend on the language which are you using if it is c than 1 bytes if it is java than 2 bytes and vary for the languages but it is generally either 1 or 2 1 byte =8 bit