Advanced_C-Programming - Paper I
Advanced_C-Programming - Paper I
1. What is a pointer?
2. What is the role of the (.) dot operator?
3. What is free() used for?
4. Differentiate between text files and binary files.
5. Write any two file mode to open binary file?
6. Differentiate between structure and union.
7. What is a memory leak?
8. What are command line arguments in C?
9. Define an array of pointers.
10. File handling in C does not allow binary files to be opened and manipulated. Justify
True/False
1. Write a C program to accept an integer using a pointer and check whether it is even
or odd.
2. Write a program to create a structure customer(cno,cname,caddress) read and display
the information of three customers.
3. Explain different operations on file with file opening mode(Opening, Reading,
Writing, Closing).
1. Write a program to read two strings. If first string is greater than second then
concatenate second to first and display concatenated string, If first string is smaller
than second then concatenate first to second, other-wise display length of string. (use
strcmp)
2. Explain different types of pointer with example.
3. Write a C program to read and write to a file.