Skip to content

Files

0x0F-function_pointers

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Sep 13, 2023
Sep 13, 2023
Sep 13, 2023
Sep 13, 2023
Sep 14, 2023
Sep 13, 2023
Sep 13, 2023
Sep 14, 2023
Sep 14, 2023
Sep 14, 2023
Sep 14, 2023
Oct 13, 2024
Sep 13, 2023
Sep 13, 2023

0x0F-function_pointers

Description

This project focuses on function pointers in C. It covers how to define and use function pointers, how to pass them as arguments to other functions, and how to use them to call functions dynamically.

Resources

Read or watch

Learning Objectives

General

  • What are function pointers and how to use them.
  • What does a function pointer exactly hold.
  • Where does a function pointer point to in the virtual memory.

Tasks

Task File Description
0. What's my name 0-print_name.c Writes a function that prints a name.
1. If you spend too much time thinking about a thing, you'll never get it done 1-array_iterator.c Writes a function that executes a function given as a parameter on each element of an array.
2. To hell with circumstances; I create opportunities 2-int_index.c Writes a function that searches for an integer.
3. A goal is not always meant to be reached, it often serves simply as something to aim at 3-calc.h, 3-op_functions.c, 3-get_op_func.c, 3-main.c Writes a program that performs simple operations.
4. No more secrets... 100-main_opcodes.c Writes a program that prints the opcodes of its own main function.