KEMBAR78
Coderstrust Presentation on C Language | PPTX
C language
Srabon sabbir
trail student
Coderstrust
Ctg :005
Id 1478
Invented by Ritchie
Invented in 1972
Published in 1978
Computer Language
Mother language
Connect with registers
Run program fast
Develop apps & games
#include <stdio.h>
int main ()
{
printf (“Hello World”);
return 0;
}
Header part
Main body
int , float, char, if, else, for,
while, switch, return, void.
keyword
add_srabon, Add_srabon,ctg001,
Addition, SUBTRACTION .
Variable
Integer data (-1, 0, 1)
Float data (.-1, .1, .11)
Character data (a ,b ,A)
Newline Character (n)
Horizontal tab (t)
Vertical tab (v)
Data
types
constant
#include <stdio.h>
int main ()
{
int a,b,add;
printf (“Enter the numbers:”);
scanf (“%d%d”,&a,&b);
add=(a+b);
printf (“The result is:%dn”,add);
return 0;
}
if, else if, else
print(true statement)
Conditions:
block1&block2
true
print(b1)
false
print(b2)
Continue execution
while loop , for loop,
do while loop
Different times (10,100)
Do fixed work
show result when called
Sub file of main
function
ANY
QUESTIONS?

Coderstrust Presentation on C Language