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

what is an array

Answer Posted / srsabariselvan

an array is a collection of same type of data.
for eg:
list of student name,collection of roll numbers.
each element has unique id(index).
Declaration:
data_type a[size];
a[index]=number;
Eg:
int a[10];
a[0]=2;
a[1]=3;
.
.
.
a[9]=22;
printf("%d",a[9]);

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of a ‘’ character?

1099


How do you list a file’s date and time?

1076


Can i use “int” data type to store the value 32768? Why?

1194


write a c programming using command line argument,demonstrate set operation(eg;union,intersection,difference) example output is c:>setop 12 34 45 1 union 34 42 66 c:>setop 12 34 1 42 66 c:>setop 12 34 diff 12 56 67 78 setop 12 34

2197


How do I convert a string to all upper or lower case?

1136


Can you please explain the difference between syntax vs logical error?

1200


can any one please explain, how can i access hard disk(physical address)? it is possible by the use of far,near or huge pointer? if yes then please explain......

1896


how is the examination pattern?

2029


Do you know the use of fflush() function?

1069


What is character constants?

1193


How to delete a node from linked list w/o using collectons?

2789


What is wrong with this statement? Myname = 'robin';

1332


Explain how do you override a defined macro?

1085


Write a program to reverse a string.

1086


general for is %wd,f-d; in this system "w" means a) 'w' represent total width of digits b) 'w' represent width which includes the digits before,after decimal place and the decimal point c) 'w' represent width which includes the digits before only d) 'w' represent width after decimal place only

1084