// Anna University, Chennai / 2025
Anna University — Computer Programming: C (CS25C01), November/December 2025
Computer Programming: C · CS25C01 · R2025 · B.E./B.Tech. Engineering (common paper) · Semester 1
Files open in a new tab. Use your browser's download or save option to keep a copy.
Work through the questions
15 questions
No verified answers are available for this paper.
Mention any two characteristics of a good algorithm.
No verified answer or solution is available for this question.
Compare between entry controlled and exit controlled loop.
No verified answer or solution is available for this question.
Differentiate between local and global variables.
No verified answer or solution is available for this question.
Write the general syntax for a multi-dimensional array and its initialization.
No verified answer or solution is available for this question.
How will you copy one string into another without using library functions?
No verified answer or solution is available for this question.
Compare between static and dynamic memory.
No verified answer or solution is available for this question.
What is union? How to define it?
No verified answer or solution is available for this question.
Present the syntax of initializing a structure at the time of declaration.
No verified answer or solution is available for this question.
State the purpose of using rewind() in file handling.
No verified answer or solution is available for this question.
List two advantages of using user-defined header files.
No verified answer or solution is available for this question.
(a) Explain the basic structure of a C program in detail with an example. Describe documentation section, link section, definition section, global declaration, main() function and subprograms. (OR) (b) Describe bitwise operators in detail. Explain AND, OR, XOR, NOT, left shift and right shift operations with binary examples.
No verified answer or solution is available for this question.
(a) Explain in detail the looping constructs: for, while and do-while. Compare them and write example programs. (OR) (b) Discuss in detail about the selection statement in C: if, if-else, nested if, switch. Give suitable C programs.
No verified answer or solution is available for this question.
(a) (i) Write a C program to find greatest common divisor using recursive function. (8 marks) (ii) Discuss about the scope and lifetime of variables. (8 marks) (OR) (b) Illustrate in detail about call by value and call by reference with an example.
No verified answer or solution is available for this question.
(a) (i) Compare and contrast structure and union with examples. (8 marks) (ii) Explain about enum datatype in C with an example of days of a week. (8 marks) (OR) (b) Write a C program using pointers to structures to insert and update employee details using array of structure.
No verified answer or solution is available for this question.
(a) Compare and contrast between text files and binary files. Write C programs for reading and writing in both formats. (OR) (b) Explain the entire process of modular programming: splitting code, creating headers, linking and reuse with an example program.
No verified answer or solution is available for this question.