Problem Set 5: Pointer and Dynamic Memory Allocation

Problem Set 2.1: Pointer

  • Pointer for primitive data types.

  • Assing and Accessing data using the pointer.

  • Print variable value and address using the pointer.

  • Expression Evaluation using the pointer.

  • Different Arithmetic Operations using the Pointer.

  • Different Conditional Operations using the Pointer.

  • Different Loop Operation using the Pointer.

  • Different Operator uses using the Pointer.

  • Swap two numbers using the Pointer

Problem Set 1.2: Dynamic Memory Allocation

  • Dynamic Memory Allocation for primitive data types.

  • Do the following task after Dynamic Memory Allocation.

    • Assign & access data using a pointer.

    • Expression Evaluation using pointer.

    • Different Arithmetic Operations using the Pointer.

    • Different Conditional Operations using the Pointer.

    • Different Loop Operation using the Pointer.

    • Different Operator uses using the Pointer.

  • Deallocate Memory after Dynamic Memory Allocation.

Last updated