Skip to Main Content
Xpress Learning - Computer Fundamentals of Programming an IT by Pearson
book

Xpress Learning - Computer Fundamentals of Programming an IT by Pearson

by Ashok N. Kamthane, Rohit Khurana
May 2024
Beginner to intermediate content levelBeginner to intermediate
465 pages
16h 14m
English
Pearson India
Content preview from Xpress Learning - Computer Fundamentals of Programming an IT by Pearson
Structure and Union
1.  What is a structure in C? 
Ans:  A structure is a collection of same or different data types, grouped together under a single
structure name. It is a derived data type arranged in a group of related data items of different data types.
2.  How is a structure declared?
Ans:  Structure is declared as follows:
struct struct_name
{
data type 1 variable1;
data type 2 variable2;
------------------
------------------
};
Explanati on: Structure declaration always starts with struct keyword. Here, struct_name
is known as tag. The struct declaration is enclosed with a pair of curly braces. Closing brace is
terminated with
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Express Learning - Computer Fundamentals and Programming

Express Learning - Computer Fundamentals and Programming

Ashok Kamthane, ITL ESL
Windows® Internals, Sixth Edition, Part 2

Windows® Internals, Sixth Edition, Part 2

David A. Solomon Mark E. Russinovich and Alex Ionescu

Publisher Resources

ISBN: 9781299954878