Wednesday, 1 May 2019

ch- structure

structure
In ____union_____ all elements are stored in the same memory location.
We must use __dot______ symbol to access structure members.

true/false
A union cannot be nested in a structure FALSE

size of a pointer, which points to a structure, depends on size of a structure.
 2.7 All the members of a union share the same memory location.

question

Write a „C‟ program to store information (title, author, subject and book_id) of a Book using structure and display it in appropriate format

Write a C program to read following details of 50 students. Student Name,, Student Roll No, Class Display total number of students studying in Class “BCA”

b) Write two main differences between structure and union.

 Define a structure Distance having two data members: cm and mm in integer. The program enters three variables and find which distance is the largest among them. 

No comments:

Post a Comment

Index

ch-1 Introduction