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
II-274 Programming Concepts
struct book
{
char name[35];
char author[35];
int pages;
} b1;
void main()
{
------------
------------
show(&b1); /* Pass by address */
print(b1); /* Pass by value */
-------------
-------------
}
void show (struct book *b2) /* Pass by address */
{
------------
------------
}
void print (struct book b2) /* Pass by value */
{
------------
------------
}
OUTPUT:
Similarly, individual structure members can be passed to a function.
13.  How are user-defined data types defined?
Ans:  The statement typedef is to be used while defining the new user-defined data type. The
syntax is as follows:
typedef type dataname;
where type is the datatype ...
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