taking the example of the following
code snippet
int marks;
...........
scanf("%d",&marks);
1-which statement allocates address
and memory to the integer variable
marks?
2-does the aforementioned
allocation assigns 5 consecutive
addresses to each 5 characters of the
variable?
3-if so happens then how is the value
being assigned to the variable,
alloted the addresses possesed by
the variable because the memory
requirement of the assigned values
could be >or< than that of the
variable it is...
queries regarding address allocation
code snippet
int marks;
...........
scanf("%d",&marks);
1-which statement allocates address
and memory to the integer variable
marks?
2-does the aforementioned
allocation assigns 5 consecutive
addresses to each 5 characters of the
variable?
3-if so happens then how is the value
being assigned to the variable,
alloted the addresses possesed by
the variable because the memory
requirement of the assigned values
could be >or< than that of the
variable it is...
queries regarding address allocation