Visual C++ Question:

Download Job Interview Questions and Answers PDF

Why Array Index starts from Zero?

Visual C++ Interview Question
Visual C++ Interview Question

Answer:

This boils down to the concept of Binary digits. Take an array size of 64 for example. We start from 0 and end at 63. We require 6 bits.But, if we were to start from 1 and end at 64, we would require 7 bits to store the same number, thus increasing the storage size.

Download Visual C++ Interview Questions And Answers PDF

Previous QuestionNext Question
How can server communicate with more than one client?How to change the Mouse Pointer Over a Button at runtime?