00:01
Now here let's see the question 1.
00:10
So count here is an integer variable which requires 4 bytes.
00:20
So it is integer of which requires 4 bytes.
00:30
Then number is an uninitialized integer variable which does not have memory allocated yet.
00:43
So it is uninitialized.
00:51
Then ptr is a pointer to an integer count.
00:57
It will require 8 bytes.
00:59
So it is a pointer to count.
01:11
It will require 8 bytes.
01:19
Now ptr2 is a pointer to number and it will require 8 bytes.
01:40
These both values are for 64 -bit system.
01:50
Now let us see question 2.
01:56
Here ptr is assigned to the value of ptr2 which means both pointers are now pointing to the same memory location.
02:10
So ptr points to same as ptr2.
02:30
The allocation for ptr2 and number remains unchanged...