Saturday, 10 April 2021

Function in C and C++ Qus 3

 #include<stdio.h>

#include<conio.h>

//#include<iostream.h>

void show(int a);

void show(int a,int b);


void show(int a)

{

printf("%d",a);

}

void show(int a,int b)

{

printf("\n%d",(a+b));

}

int main()

{

clrscr();

show(5);

show(8,3);


getch();

return 0;

}

No comments:

Post a Comment