Professional Documents
Culture Documents
CSE207 Hw4
CSE207 Hw4
# HOMEWORK No.4
PART A
PART B
4. Write a C program to check if any key is hit and make change in the
terminal settings as follows:
c- Switch to canonical mode.
n- Switch to non canonical mode.
s- Does not allow the signal keys like ctrl+D etc.
o- Reset the original settings.
q- Quit from program.
And while waiting for any key to hit it should print the message “Please
press any key”.
5. Write a C program to maintain student record. It should also allocate
memory dynamically for the following structure.
Struct student
{
Char name [20];
Int Rollno;
Float marks;
};
Q6 WAP to create a file with name provided as command line argument and place a write lock on
it