Presented by: Aakash Biswas
HTML Tutorial: • Learn HTML (Tutorial 1)
CSS Tutorial: • Learn CSS (Tutorial 1)
JavaScript Tutorial: • Learn JavaScript (Tutorial 1)
HTML 5 Tutorial: • Learn HTML 5 - Part 1
Download Dev-C++: https://sourceforge.net/projects/orwe...
More on C Programming: https://en.wikipedia.org/wiki/C_(prog...)
C Programming Tutorial Online: https://www.programiz.com/c-programming
Buy books on C Programming: https://www.amazon.com/Best-Sellers-B...
Complied Language
A compiled language is a programming language whose source code is translated into machine code by a compiler (translator that generates machine code from source code).
Example: C , C++, Java, Objective C
Read more on compiled language: https://en.wikipedia.org/wiki/Compile...
Interpreted Language
An Interpreted language directly executes the source code line-by-line.
The source code does not have to be complied in order to run the program.
Steps Taken By Interpreted Languages:
1) parse the source code and perform its behavior directly
2) translate source code into some efficient intermediate representation and immediately execute the code
3) explicitly execute stored precompiled code made by a compiler which is part of the interpreter system.
Example: JavaScript, Python, Ruby, PHP
Read more on interpreted language: https://en.wikipedia.org/wiki/Interpr...)
Data Types
A data type is a classification of data, it tell the computer what type of data we want to use.
List of Data Types in C Programming
Integer : 1, -4, 60, -195
Floats : 1.45, 3.14, -5.67
Double: 1.239485843, - 4.59683445
Character: ‘A’
Variables
A variable is storage space that holds data. It can hold a number or a character.
To use a variable you will have to first declare its type then its name and then assign a value to it.
Example: int a = 10;
Static Allocation
Static memory allocation is to set the size of the memory before running the program. You cannot change the value of the variable when run the program.
Example; int a = 10;
Dynamic Allocation
Dynamic memory allocation is where you can input data in the variable while you run your program. The scanf function is used to get the input from the user.
Example: int a;
printf "enter a number:\n;
scanf "%d", &a;
Comments
Comments are readable explanation or annotation in the source code of the computer program given by the programmer.
Example: // the loop will increment till it reaches 30
/* This program will display all the prime
numbers in the range from 1 to 100
*/