c language में function का कोड कैसे लिखें || Hbs Computer Course

Hello friends welcome to my blog , Hbs computer course .Today we will learn about Function in C language.Today ,you will definitely learn how to write a program ,how to write a function .After reading this blog you will not need to go any other platform.





Function :Small program which perform specific task

#                                  =                 preprocessor
include                         =                 keyword


if you want to know about keyword click the following link 







<stdio.h>                     =                input output header file 


header file: 

header file contains predefined function.

<conio.h>   = console input output header file(working as written type & main function)



void main ->      Starting function

;                ->      Statement terminator 

printf        ->      output function 

scanf        ->      input function

&              ->      address of , ampersand 

getch()    ->   

getch () is used to input character value from keyboard.It is used to hold console screen.



So, friends now we ready to make a program 

if you want to study from beginning follow this link








1) Write a program to find sum of two numbers.


#include<stdio.h>
#include<conio.h>


void main()
{
int a ,b,c;
printf("Enter any two numbers")
scanf("%d%d,&a,&b);
c=a+b;
printf("\n sum of two numbers =%d",c);


getch();


}



  




Comments