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,strutter,union and pointers

Answer Posted / shashidhar

array can contain single data type
Structure is collection of different data types
Unions can also contain different data types, but here the
different date types share the same memory within the
computers memory

ex:
==========================
|| ||
==========================

in the above the memory between || || is shared by int,
float, double declarations in a UNION.
where as in struture || || || the memory
declared for int and float and double are different.
which implies memory utilization is better in union.

When you come to pointers, well it can point to a data type
(like int) can point to a structure (struct xyz{ };) , it
can point to a union (union item { }; ) so its like a honey
BEE it can sit on anything

Is This Answer Correct ?    54 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Synonymous with pointer array a) character array b) ragged array c) multiple array d) none

1106


a c code by using memory allocation for add ,multiply of sprase matrixes

2861


I just typed in this program, and it is acting strangely. Can you see anything wrong with it?

1055


What does the file stdio.h contain?

1119


What is a #include preprocessor?

1220


which of the following is not a character constant a) 'thank you' b) 'enter values of p, n ,r' c) '23.56E-o3' d) all of the above

2121


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

1494


How can I implement a delay, or time a users response, with sub-second resolution?

1114


What are the types of pointers?

1185


Explain the difference between null pointer and void pointer.

1131


How to explain the final year project as a fresher please answer with sample project

1024


What is class and object in c?

1172


Does c have enums?

1173


What does != Mean in c?

1092


What is the difference between printf and scanf )?

1147