Skip to content

Latest commit

 

History

History

0x05-pointers_arrays_strings

0x05. C - Pointers, arrays and strings

Resources:books:

Read or watch:


Learning Objectives:bulb:

What I learned from this project:

  • What are pointers and how to use them
  • What are arrays and how to use them
  • What are the differences between pointers and arrays
  • How to use strings and how to manipulate them
  • Scope of variables

  • A function that takes a pointer to an int as parameter and updates the value it points to to 98.
  • A function that swaps the values of two integers.
  • A function that returns the length of a string.
  • A function that prints a string, followed by a new line, to stdout.
  • A function that prints a string, in reverse, followed by a new line.
  • A function that reverses a string.
  • A function that prints every other character of a string, starting with the first character, followed by a new line.
  • A function that prints half of a string, followed by a new line.

[8. Arrays are not pointers](./ 8-print_array.c)

  • A function that prints n elements of an array of integers, followed by a new line.
  • A function that copies the string pointed to by src, including the terminating null byte (\0), to the buffer pointed to by dest.

Author