Saturday, 10 April 2021

Function in C and C++ Qus 4

 #include<stdio.h>

#include<conio.h>

#include<iostream.h>

void show(int a);

void show(int a,int b);


void show(int a)

{

cout<<a<<endl;

}

void show(int a,int b)

{

cout<<a+b<<endl;

}

int main()

{

clrscr();

show(5);

show(8,3);


getch();

return 0;

}

No comments:

Post a Comment