Skip to content

Latest commit

 

History

History

0x09-dynamic_memory_allocation

Dynamic Memory Allocation

  • Projects done during my study of Harvard University's cs50, an introduction to the intellectual enterprises of computer science and the art of programming.

Technologies

  • Files written in Visual Studio Code 1.73 editor.
  • C files compiled using gcc 9.4.0.
  • C files wriiten according to the betty coding style.
  • Files tested on Windows 10 using gcc.

Files

File Description
0-malloc.c A C program that getes a string, allocates a memory for it and change it to uppercase.
1-valgrind.c A C program that allocates memory equal to the size of the integer.
2-free.c A C program that allocates memory equal to the size of the integer and frees the memory.
3-garbage.c A C that returns Garbage values.
4-swap.c A C program that swaps the values of 2 integers using their memory locations.
5-int_user.c A C program that promts user to input an integer and prints the integer and its memory location.
6-string_malloc.c A C program printing string with malloc.
7-list.c A C printing a list of size 3.
8-list_malloc.c A C program that dnamically allocate an array of size 3.