Aug 24, 2024
.c.main() function.#include to include other C files, ending with .h (e.g., #include <stdio.h>).char: Characters.int: Integer values.float: Decimal values (up to 6 decimal places).double: Decimal values (up to 15 decimal places).void: No value (often used in functions).printf() with format specifiers.
printf("%d", variable_name);scanf().
scanf("%d", &variable_name); (use & for address).&&, ||).if (condition) { // statements }if to execute if the condition is false.switch(variable) { case value: // statements; break; }for (initialization; condition; increment/decrement) { // code }data_type array_name[size];* before the variable name.& to get the address and * to dereference.char string_name[size];%s.struct structure_name { // items };union.//./* and end with */.gcc filename.c -o output_filename