CSCI 224: Assembly Language Programming
Sample Programs
Basics of C programming language
- First program (size of the data types): sizes.c
- C casting: statcast.c
- Computing roots of a function: roots.c
- Working with arrays: arrays.c
- Working with C-strings
- using strlen() function: cstrings.c
- converting string into numbers with atoi() and atof(): str2num.c
- converting numbers into strings with sprintf(): num2str.c
- Bubble sort of numbers: bSort.c
- Working with structures: structures.c
- Copying structures: struccopy.c
- Arrays of structures: strucarr.c
- Passing parameters to functions
- by value: pass_val.c
- by reference: pass_ref.c
- passing 1-dim and 2-dim arrays: passarr.c
- passing/returning structures: passstruct.c
- Returning arrays from functions: retarray.c
- Using inline functions: bubble sort of the data file
- Working with pointers: pointers1.c
- Command line arguments: commline1.c
- Dynamic memory allocation and release: with malloc() and free()
- More on pointers: pointers2.c
- Working with linked lists: llists1.c
- Using typedef keyword: llists2.cpp
- Linked list class as a multifile project: listmf.h, listmf.cpp, listmain.cpp and Makefile