Brilliant video. I've wasted ages looking for an explanation elsewhere in other people's videos and here you are, you've nailed it in less than three minutes. Thank you, sir!
realized that if int = 2 bytes we will have 2 to power of 16 = 65536 but since its signed 65536 /2 = 32768 and for positive values that would be from 0 to 32767. this seems to account for the i = 32767.
I would like to state that TechWorld with Nana (ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-3c-iBn73dDE.html) explanation was the reference for this video.She has a detailed Video on Docker .