learn

C Lang (.c)

Mainly used in Apps.

Syntax

Text

This is a text no need to write codes
for a text

Template structure

#include <stdio.h>

int main() {

return 0;
}

Importing Package / Module

#include

Comment

// Comment

Text/ String Variable

const char VariableName = "Text Here"

if with only one character

 char VariableName = "T"

Number Variable

int VariableName = 0

If With decimal

float VariableName = 0.1

Output / Print

printf("any")

print a var

printf(ThEvar)

If statement

if (theREason == true) {

}

short if version

theREason == true ? "choiceTrue" : choiceFalse"

While

while (theREason == true) {

}

For Loop

for (int var; var = 0; var < "howMany"; var++) {
  
}

Function & parameter

int MySheesh(thePara) {
  
}

example

int MySheesh(thePara) {
  printF(thePara)
}

this print the strings in para