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 difference between array and structure?

Answer Posted / kirankumar

Array is used to represent a group of data items that
belongs to the same type or kind.
int a[5];
i.e a[0],a[1],a[2],a[3],a[4].
all a values are integer types.


If we want to represent data items of different types using
a single name is called strucute.
Ex:struct book
{
char title[20];
int pages;
float price;
};

Is This Answer Correct ?    0 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you mean by dynamic memory allocation in c?

1066


What is a macro?

1059


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

1145


how to print electricity bill according to following charges first 100 units -1rs per unit for next 200 units-1.50 rs per unit without using conditions

3146


write a c program to print the next of a particular no without using the arithmetic operator or looping statements?

3878


When should the const modifier be used?

1069


How many types of arrays are there in c?

1016


Explain what’s a signal? Explain what do I use signals for?

1077


What is output redirection?

1179


What does 4d mean in c?

1460


Difference between Function to pointer and pointer to function

1035


What is the use of #include in c?

1047


What is a static function in c?

1129


Is multithreading possible in c?

962


can anyone suggest some site name..where i can get some good data structure puzzles???

2039