C Lab Session 2

Please follow the instructions on https://ysjprog03.netlify.app/docs/vsc/ on setting up access to gitlab.

Exercise 1

  1. Clone and open https://github.com/andyguestysj/cMemoryAddresses.git
  2. Alternative if github doesn’t work - ctask1.c
  3. Work your way through the tasks in the code - they are in the comments

Exercise 2

  1. Clone and open https://github.com/andyguestysj/cPointers.git
  2. Alternative if github doesn’t work - ctask2.c
  3. Work your way through the tasks in the code - they are in the comments

Exercise 3

  1. Clone and open https://github.com/andyguestysj/cPointerChecking
  2. Alternative if github doesn’t work - ctask3.c
  3. Work your way through the tasks in the code - they are in the comments

Exercise 4

  1. Clone and open https://github.com/andyguestysj/cArrayBoundaryOverrun
  2. Alternative if github doesn’t work - ctask4.c
  3. Work your way through the tasks in the code - they are in the comments

Extra Exercises

If you’ve completed the exercises above, have a look at the link below for some more practice.

https://www.w3resource.com/c-programming-exercises/pointer/index.php