Skip to content

Latest commit

 

History

History

0x0F-function_pointers

Function pointers

Project done during Full Stack Software Engineering studies at ALX Africa SE. It aims to learn about function pointers in C language.

Technologies

  • C files are compiled using `gcc
  • C files are written according to the C90 standard
  • Tested on Ubuntu 20.04 LTS

Files

All of the following files are programs written in C:

Filename Description
0-print_name.c Prints a name
1-array_iterator.c Executes a function given as a parameter on each element of an array
2-int_index.c Searches for an integer
3-calc.h Header file that contains all function prototypes and data structures
3-op_functions.c File that contains functions that calculates arithmetic operations
3-get_op_func.c Function pointer that returns the pointer of the arithmetic functions
3-main.c Entry point
100-main_opcodes.c Prints the opcodes of its own main function
  • 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

  • Write a function that prints a name.
  • Write a function that executes a function given as a parameter on each element of an array.
  • Write a function that searches for an integer.
  • Write a program that performs simple operations.
  • Write a program that prints the opcodes of its own main function.

Author

Acknowledgements 🙏

All work contained in this project was completed as part of the curriculum for ALX Africa SE. ALX Africa is an online full-stack software engineering program that prepares students for careers in the tech industry using project-based peer learning. For more information, visit this link.

ALX Africa Logo