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 is the difference between printf and scanf )?

1104


Explain the bubble sort algorithm.

1079


How reliable are floating-point comparisons?

1105


write a program using linked list in which each node consists of following information. Name[30] Branch Rollno Telephone no i) Write the program to add information of students in linked list

2810


With the help of using classes, write a program to add two numbers.

1044


Which operators cannot be overloaded a) Sizeof b) .* c) :: d) all of the above

1151


What is the difference between fread and fwrite function?

1091


Why is it usually a bad idea to use gets()? Suggest a workaround.

1795


How arrays can be passed to a user defined function

1028


Explain continue keyword in c

1026


which is conditional construct a) if statement b) switch statement c) while/for d) goto

1225


On most computers additional memory that is accessed through an adapter of feature card along with a device driver program. a) user memory b) conventional memory c) expandedmemory d) area

1128


What is 2c dna?

1085


why we wont use '&' sing in aceesing the string using scanf

2375


Differentiate call by value and call by reference?

980