Complete the code to declare a variable that uses 1 byte of storage.
unsigned char [1] = 255;
int which usually uses 4 bytes.The unsigned char type uses 1 byte of storage. Naming the variable byteVar is clear and descriptive.
Complete the code to declare a variable that uses 4 bytes of storage.
int [1] = 1000;
char which uses 1 byte.The int type typically uses 4 bytes on modern systems. Naming the variable num is simple and clear.
Fix the error in the code to correctly declare a 2-byte storage variable.
short [1] = 32000;
short with int.The short type usually uses 2 bytes. Naming the variable shortVar clearly indicates its type.
Fill both blanks to declare a variable with 8 bytes storage and assign a large number.
[1] [2] = 9223372036854775807LL;
int which is usually 4 bytes.long long is an 8-byte integer type in C. Naming the variable bigNum clearly shows it stores a big number.
Fill all three blanks to declare a floating-point variable with 8 bytes storage and assign a value.
[1] [2] = [3];
float which is 4 bytes.double is an 8-byte floating-point type. Naming the variable pi is meaningful for this value.