Table of Contents

Lab01 - Introduction to the Computer Laboratory and C Programming Language

clang -Wall -pedantic -std=c99 program.c -o main
Or
gcc -Wall -pedantic -std=c99 program.c -o main
* Compile and executed the program lec01/var.c

clang var.c && ./a.out

clang var.c -o var
./var 
./var; echo $?
./var 1 2 3; echo $?
./var aaa; echo $?

For the gedit, you cannot configure the formatting of the source according to the CPL recommendation coding style using clang-format using script available in the archive setup_gedit.zip. You can download the archive, unzip the file, and execute the script as follows:

wget http://cw.fel.cvut.cz/wiki/_media/courses/be5b99cpl/labs/setup_gedit.zip
unzip setup_gedit.zip
./setup_gedit.sh

Lab tasks

Further tasks

Implement programs in exercises and programming Projects of Chapters 2 and 3 of the K.K. King textbook.