C Progragramming Language Tutorial PPT F
C Progragramming Language Tutorial PPT F
C Progragramming Language Tutorial PPT F
Language Tutorial
Prepared by:MARIEL C. lAYLAY
What is c language:-
HELLO WORLD!
Input output function:-
There are two input output function of c language.
1) First is printf()
2) Second is scanf()
printf() function is used for output. It prints the given statement
to the console.
Syntax of printf() is given below:
printf(“format string”,arguments_list);
Format string can be %d(integer), %c(character), %s(string),
%f(float) etc.
Input/ output function
#include <stdio.h>
#include <conio.h>
void change(int num) {
printf("Before adding value inside function num=%d \n",num);
num=num+100;
printf("After adding value inside function num=%d \n", num);
}
int main() {
int x=100;
clrscr();
printf("Before function call x=%d \n", x);
change(x);//passing value in function
printf("After function call x=%d \n", x);
getch();
return 0;
}
Output window :-
R2
2 3 4 5
R3
3 4 5 6
Pointer in c language