1. Write a program to store a date in an optimized structure that includes properly-sized bit fi elds. The program accepts a date as three integers in the form dd mm yyyy and prints the values using...


1. Write a program to store a date in an optimized structure that includes properly-sized bit fi elds. The program accepts a date as three integers in the form dd mm yyyy and prints the values using the structure.


2. Write a program that assigns the values 1, 2 and 4, representing read, write and execute permissions, to an enumeration. With valid user input, the program must print a message, say, “File has read permission.


3. When will you use the library functions to handle fi les in preference to the <> redirection features?



May 18, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here