Q:

How to declare a variable, How to assign value to a variable, explain with an example

0

How to declare a variable, How to assign value to a variable, explain with an example

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

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

total answers (1)

Similar questions


need a help?


find thousands of online teachers now