> stucture in c ~ Online tutorial

stucture in c



unlike arrays ,structure must be defined first for their format that may be used later to declare structure variable.

syntax
struct book_bank

{

char title[20];

char author[10];

int pages;

};






Explanation
the keyword struct keyword declares a structure to hold the details of three data fields,namely title,author,pages.

these fields are called structure element or member

general form of structure

struct tag_line

{

data type member1;

data type member2;

};


Please Give Us Your 1 Minute In Sharing This Post!
Please Give Us Your 1 Minute In Sharing This Post!
SOCIALIZE IT →
FOLLOW US →
SHARE IT →
Powered By: BloggerYard.Com

0 comments: