C is a general-purpose procedural programming language that provides low-level access to system resources and hardware and can be used for system programming, embedded systems, and software development. It has key unique features such as pointers that can directly manipulates memory and preprocessor directives, which allow programmers to modify the source code before it is compiled.
Table Contents |
---|
1. Malloc |
2. Pointers |
3. Function Pointers |
4. Static Libraries |
5. Command Line Arguments |
6. C Preprocessor |
7. Variadic Functions |
8. Structures and TypeDef |
9. File I/O |
Used Betty Linter to check for syntax errors noted indentation resulted in errors - (indentation is not recognized by compiler however indentation is important for readability as well as to comply with ASCI Standards)
-
Scripts written are aimed at key basic functions on running GCC compiler. C compilation process is explained here
-
You can find a list of different compilers here
-
GNU man gcc flags can be found here
-
Make code executable with gcc on ubuntu
foo@bar:~ gcc -Wall -pedantic -Werror -Wextra -std=gnu89 main.c c-file.c -o exec_file_name
Format specifiers define the type of data to be printed on standard output. More info here
putchar is a function in the C programming language that writes a single character to the standard output stream, stdout. Its prototype is as follows:
int putchar (int character)
The character to be printed is fed into the function as an argument, and if the writing is successful, the argument character is returned.
Print long int using _putchar requires to have recursion to be add those numbers to string as shown here. Excercises that used this is > 5-more_numbers.c