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

difference between function & structure

Answer Posted / s.s gill

function: in function we can have different data types and can perform different operation according to our need. a function once created can be called anytime in given program.

Structure: in structure we can only assign data types to different variables that are to be used in our program. we cannot perform any operation inside a structure.

this is the major difference between function and structure

Is This Answer Correct ?    2 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does %d do?

1351


If a variable is a pointer to a structure, then which operator is used to access data members of the structure through the pointer variable?

1306


Can a variable be both constant and volatile?

1176


The number of measuring units from an arbitarary starting point in a record,area,or control block to some other point a) recording pointer b) offset c) branching d) none

1306


main(){char *str;scanf("%s",str);printf("%s",str); }The error in the above program is: a) Variable 'str' is not initialised b) Format control for a string is not %s c) Parameter to scanf is passed by value. It should be an address d) none

1410


What is the use of in c?

1085


Explain what is a const pointer?

1120


What is %d called in c?

1280


What does 4d mean in c?

1561


Give differences between - new and malloc() , delete and free() ?

1149


Do you know pointer in c?

1103


What are c identifiers?

1148


How can I dynamically allocate arrays?

1158


what does static variable mean?

1162


What are shell structures used for?

1092