Depends on several factors:
An int typically occupies 4 bytes of memory in most programming environments, including languages like C, C++, and Java, assuming a standard architecture. Therefore, an int variable, such as int a = 100;, will occupy 4 bytes. However, this can vary depending on the specific programming language and architecture used, so it's always a good practice to check the documentation for the language in question.
2
A plain integer variable in C under windows is 2 bytes in 16 bit windows, and 4 bytes in 32 bit windows.
4 - one for each character. However, depending on the computer language being used, there is some "overhead" - for example, with "C", the end of a text string is indicated with a null character, so "Bill" would need 5 bytes. Other languages precede strings with their length, the length taking 2, 4 or 8 bytes.
It completely depends the datatype that you have assigned for the variables 'a' , 'b' , and 'c'. Check the compiler that you are using for the size of the datatype in bytes. Add them and thus you will get the answer.
The storage size of an int in C is loosely defined, and may be either 2 bytes or, more commonly, 4 bytes. Whether or not it is defined as const won't affect the size.
it is a sequence of bytes
There is no boolean in C, we usually use int/short/char to store logical values.
It depends on the type of integer (such as long, short, int and char) and the specific implementation of C++. The only guarantee is that a char must occupy one byte (sizeof(char)==1). An int is typically 32-bits (4 bytes), but only sizeof(int) can tell you for sure.
Depending on context a megabyte (MB) can be defined as: a) 1,048,576 bytes (10242) for computer memory b) 1,000,000 bytes for computer storage. The IEEE Standards Board has determined that "Mega will mean 1,000,000" c) In rare cases it is used to mean 1000×1024 (1,024,000) bytes. So depending on context, 5205488 Bytes can equate to: a) 4.96 MB b) 5.20 MB c) 5.08 MB
A std::string is an object that encapsulates an array of type char whereas a C-style string is a primitive array with no members. A std::string is guaranteed to be null-terminated but a C-style string is not.
There is no C string on a violin- the strings are G, D, A and E. Perhaps you are thinking of a viola, which has a low C string, alongwith a G, D and an A string.