here you will found scripts written in C programming language that may cover everything about C I hope
-
0x00. C - Hello, World : printing and compiling
-
- 0-preprocessor : run through preprocesser and save result in a file
- 1-compiler : compile but do not link
- 2-assembler : generates the assembly code and save it to a file
- 3-name : compile and create an executable file
- 4-puts.c : print a sentence
- 5-printf.c : print another sentence
- 6-size.c : prints the size of various types
- 100-intel : generates the assembly code (Intel syntax) and save it to a file
- 101-quote.c : print a sentence
-
-
0x01. C - Variables, if, else, while : loops and other printing functions
-
- 0-positive_or_negative.c : decide if the random number is positive or negative
- 1-last_digit.c : print last digit of a random number
- 2-print_alphabet.c : print the alphabet in lowercase
- 3-print_alphabets.c : print the alphabet in lowercase, and then in uppercase
- 4-print_alphabt.c : print lowercase alphabet except q and e
- 5-print_numbers.c : print single digit numbers from 0 to 9
- 6-print_numberz.c : print single digit numbers from 0 to 9 with putchar
- 7-print_tebahpla.c : print lowercase alphabet in reverse
- 8-print_base16.c : print numbers of base 16 in lowercase
- 9-print_comb.c : print all possible combinations of single-digit numbers
- 100-print_comb3.c : print all possible different combinations of two digits
- 101-print_comb4.c : print all possible different combinations of three digits
- 102-print_comb5.c : print all possible combinations of two two-digit numbers
-
-
0x02. C - Functions, nested loops : nested loops, functions and header files
-
- 0-putchar.c : print _putchar
- 1-alphabet.c : function that prints the alphabet, in lowercase
- 2-print_alphabet_x10.c : function that prints 10 times the alphabet, in lowercase
- 3-islower.c : function that checks for lowercase character
- 4-isalpha.c : function that checks for alphabetic character
- 5-sign.c : function that prints the sign of a number
- 6-abs.c : function that computes the absolute value of an integer
- 7-print_last_digit.c : function that prints the last digit of a number
- 8-24_hours.c : function that prints every minute of the day
- 9-times_table.c : function that prints the 9 times table, starting with 0
- 10-add.c : function that adds two integers and returns the result
- 11-print_to_98.c : function that prints all natural numbers from n to 98
- 101-natural.c : compute sum of multiples of 3 or 5 below 1024
- 102-fibonacci.c : print the first 50 Fibonacci numbers, starting with 1 and 2
- 103-fibonacci.c : print the sum of Fibonacci sequence that do not exeed 4000,000
- 104-fibonacci.c : print the first 98 Fibonacci numbers, starting with 1 and 2
-
-
-
- 0-main.c : test that the function positive_or_negative() gives the correct output when given a case of 0
- 1-main.c : Commenting out the part of the code that causing the output to go into an infinite loop
- 2-print_alphabet_x10.c : Fix the code in 2-largest_number_faulty.c so that it correctly prints out the largest of three numbers, no matter the case
- 3-print_remaining_days.c : Fix the print_remaining_days() function that in file 3-print_remaining_days_faulty.c so that the output works correctly for all dates and all leap years
-
-
0x04. C - More functions, more nested loops : nested loops, functions and header files
-
- 0-isupper.c : function checks for uppercase character
- 1-isdigit.c : function checks for a digit
- 2-mul.c : function multiplies two integers
- 3-print_numbers.c : function prints the numbers, from 0 to 9
- 4-print_most_numbers.c : function prints the numbers, from 0 to 9 except 2 and 4
- 5-more_numbers.c : function prints 10 times the numbers, from 0 to 14
- 6-print_line.c : function draws a straight line in the terminal
- 7-print_diagonal.c : function draws a diagonal line on the terminal
- 8-print_square.c : function prints a square
- 9-fizz_buzz.c : program prints numbers from 1 to 100, But for multiples of 3 print Fizz, and for the multiples of 5 print Buzz. For multiples of both 5 and 5 print FizzBuzz
- 10-print_triangle.c : function prints a triangle
- 100-prime_factor.c : program finds and prints the largest prime factor of the number 612852475143
- 101-print_number.c : function prints an integer
-
-
-
- 0-reset_to_98.c : function takes a pointer to an int as parameter and updates the value it points to to 98
- 1-swap.c : function swaps the values of two integers
- 2-strlen.c : function returns the length of a string
- 3-puts.c : function prints a string
- 4-print_rev.c : function prints a string, in reverse
- 5-rev_string.c : function reverses a string
- 6-puts2.c : function prints every other character of a string, starting with the first character
- 7-puts_half.c : function prints second half of a string
- 8-print_array.c : function prints n elements of an array of integers
- 9-strcpy.c : function copies the string pointed to by src, to the buffer pointed to by dest
- 100-atoi.c : function convert a string to an integer
- 101-keygen.c : program that generates random valid passwords for the program 101-crackme
-
-
-
- 0-strcat.c : function concatenates two strings
- 1-strncat.c : function concatenates n characters from a string with another one
- 2-strncpy.c : function copies n characters from a string to another one
- 3-strcmp.c : function compares two strings
- 4-rev_array.c : function reverses the content of an array of integers
- 5-string_toupper.c : function changes all lowercase letters of a string to uppercase
- 6-cap_string.c : function capitalizes all words of a string
- 7-leet.c : function encodes a string into 1337
- 100-rot13.c : function that encodes a string using ROT13
- 101-print_number.c : function prints an integer
- 102-magic.c : edit the magic.c file so that the program prints a[2] = 98
- 103-infinite_add.c : function adds two numbers
- 104-print_buffer.c : function prints a buffer
-