answersLogoWhite

0

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

User Avatar

Wiki User

14y ago

What else can I help you with?

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.


If c and ndash 8 is an odd integer could be the value of c?

If ( c - 8 ) is an odd integer, then ( c ) must be an odd integer as well. This is because subtracting an even number (8) from an odd number results in an odd number. Therefore, possible values for ( c ) could be any odd integer such as 1, 3, 5, 7, etc. In general, ( c ) can be expressed as ( c = 2k + 1 ), where ( k ) is an integer.


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 is the memory size of integer pointer?

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


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;


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.