How to declare a variable, How to assign value to a variable, explain with an example
A variable is a block of memory that stores data of a particular type and is named with an appropriate identifier.
• An int number_of_days might begin at A000
• The int is 4 bytes:
A000 10101001
A001 00000000
A002 10101010
A003 11110010
• The name of the variable corresponds to the
address of the first byte!
• The machine remembers the address and
knows that an int is four bytes
• Knowing the address is very important in C
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
A variable is a block of memory that stores data of a particular type and is named with an appropriate identifier.
• An int number_of_days might begin at A000
• The int is 4 bytes:
A000 10101001
A001 00000000
A002 10101010
A003 11110010
• The name of the variable corresponds to the
address of the first byte!
• The machine remembers the address and
knows that an int is four bytes
• Knowing the address is very important in C
need an explanation for this answer? contact us directly to get an explanation for this answer