Skip to content

This repository offers a full course of programming, written in the C programming language.

License

Notifications You must be signed in to change notification settings

alfa-coding/programming_lessonns_C

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Execution Rules

  1. starting from main
  2. from top to down
  3. from right to left
  4. from inside to outside

Logic Rules:

  1. NOR
    a | result nor a -> !a
    0    1
    1    0
  1. OR
    a | b | result a or b -> ||
    0   0   0
    0   1   1
    1   0   1
    1   1   1
  1. AND
    a | b | result a and b -> &&
    0   0   0
    0   1   0
    1   0   0
    1   1   1

Conditionals:

  1. Regarding if,else if, else statements

    They are mutually exclusive, meaning that, in case of one being evaluated then, the others will not be executed at all.

    if(condition1) -> needs to be a boolean value-> true or false
        
        //body that executes in case the condition is true
    }

    else if(condition2) 
    {
        //body that executes in case the condition 2 is true

    }

    else
    {
        //body that executes in case of any previous condition being true
    }

Loops

  1. While Loops
    while(condition)
    {
        //body that repeats under the condition being true
    }

  1. For Loops

    The execution order is initialization, comparison, body, increment, then, again comparision

    for (initialization; comparison; increment)
    {
        //body to repeat
    }

Functions

  1. Functions
    [return type] function_name (parameters)
    {
        //body

        return [a variable that is of the return type you specified]
    }

About

This repository offers a full course of programming, written in the C programming language.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages