Programming for Problem Solving Unit 5 Notes AKTU (BCS101)

AKTU · BTECH · Semester 1, 2 · Programming for Problem Solving · Unit 5 · Notes

AKTU Programming for Problem Solving (BCS101) Unit 5 notes for B.Tech Semester 1/2 – Pointers File Handling and Preprocessors. Topics: Pointers, String…

A preview is available. Sign in or check access options in the reader for the complete resource.

Unit 5: Pointers File Handling and Preprocessors – AKTU syllabus topics

  • Pointers: Pointer Declaration and Applications, Dynamic Memory Allocation, Pointers in Self Referential Structures, Notion of Linked List
  • String Functions
  • File Handling: File IO Functions
  • C Preprocessors and Macros: Defining and Calling Macros, Command Line Arguments

Most asked AKTU PYQ questions from Unit 5

  1. Q2e. Explain the importance of pointers in C. Write a program in C to swap the values of two numbers entered by user using function call by reference method. (10 marks, 2018-19)
  2. Q7a. Define various file operations in C. Write a program in C to count and print the number of characters in a file. (10 marks, 2018-19)
  3. Q7b. Explain the following: (i) Macros. (ii) Union (iii) Enumerated data types (iv) Type conversion (10 marks, 2018-19)
  4. Q1i. Differentiate static and dynamic memory allocation. (2 marks, 2018-19)
  5. Q1j. Define the structure of a node in linked list. (2 marks, 2018-19)
  6. Q7b. State the features of a pointer. Explain dynamic memory allocation with the help of an example. (10 marks, 2019-20)
  7. Q7a. Discuss dynamic memory allocation. Explain calloc(), malloc(), realloc() and free() functions with suitable example. (7 marks, 2025-26)
  8. Q1i. Explain the role of C preprocessor. (2 marks, 2019-20)
  9. Q1j. What do you mean by pointer arithmetic? (2 marks, 2019-20)
  10. Q7a. Define dynamic memory allocation. Differentiate between malloc() and calloc() with proper example. (10 marks, 2021-22)

AKTU paper codes: BCS101, BCS201, KCS101, KCS101T, KCS201, KCS201T

Other Programming for Problem Solving units

Programming for Problem Solving previous year papers

More Programming for Problem Solving resources

Browse all notes · Semester 1 notes