This document contains 5 assignments for an Advanced Computer Programming course covering various C programming topics like arrays, strings, pointers, structures, unions, and file operations. Each assignment lists several questions related to the programming concept for the students to answer. The assignments cover common programming components like arrays, strings, pointers, functions, structures, unions, and file input/output. Students are to submit their responses by the given dates to their course teacher for grading.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
110 views5 pages
ACP Assignment-2021 PDF
This document contains 5 assignments for an Advanced Computer Programming course covering various C programming topics like arrays, strings, pointers, structures, unions, and file operations. Each assignment lists several questions related to the programming concept for the students to answer. The assignments cover common programming components like arrays, strings, pointers, functions, structures, unions, and file input/output. Students are to submit their responses by the given dates to their course teacher for grading.
1. Explain function prototype, function definition and function call. 2. List various categories of function. Explain all with code snippet. 3. Explain call by value and call by reference with example. 4. Give difference between library function and user defined function. 5. Define recursion .demonstrate it using program. 6. Explain directives #includeand #line with one example. 7. Explain directives #define and #undef with one example. 8. Define macro expansion.Explain with example. 9. Explain condition inclusion with example. 10. List and Explain <ctype.h> Macros.
2. Write syntax in C for structure named book with datafield as title,author,price and year. 3. Explain array of structure using suitable example. 4. Explain nesting of structures using example. 5. Define union. Explain with example. 6. Give difference between structure and union. 7. State the purpose of typedef. How typedef is useful in a structure? 8. Explain file management with example. 9. Explain file opening modes . 10.Write a program to copy the content of one file. 11.Explain command line arguments with example.