Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

why array index always starts from zero??

Answer Posted / supercool

It uses 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.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is modifier & how many types of modifiers available in c?

1032


What is the difference between scanf and fscanf?

1270


Explain which of the following operators is incorrect and why? ( >=, <=, <>, ==)

1036


how to find anagram without using string functions using only loops in c programming

3194


What is a constant?

1064


What are the usage of pointer in c?

1201


Explain how do you declare an array that will hold more than 64kb of data?

1455


how to write a c program to print list of fruits in alpabetical order?

2306


Can we access array using pointer in c language?

1092


How do you convert a decimal number to its hexa-decimal equivalent.Give a C code to do the same

1113


What is the use of clrscr?

1110


What are the advantages and disadvantages of pointers?

1074


What is the symbol indicated the c-preprocessor?

1252


What is a pragma?

1131


Explain what does the characters 'r' and 'w' mean when writing programs that will make use of files?

1254