Wednesday 1 December 2010

How many bytes will the pointer intPtr of type int move in the following statement? intPtr += 3 ;

► 3 bytes
► 6 bytes
12 bytes
► 24 bytes
one int is 4 bytes so 4*3 = 12 bytes movement.

1 comment:

  1. How can we allocate dynamically so it can be freed after use

    ReplyDelete