Computer Science, asked by papihachhatrapati, 20 days ago

Write a C++ program to find maximum of three integer numbers, three float number, and three double numbers using function overloading.​

Answers

Answered by Aarya5524
8

#include<iostream.h>

#include<conio.h>

void swap(int a,int b)

{

int temp;

temp=a;

a=b;

b=temp;

cout<<"\nInteger values after swapping are:"<<a<<" "<<b;

}

void swap(float x,float y)

{

float temp1=x;

x=y;

y=temp1;

cout<<"\nFloat values after swapping are:"<<x<<" "<<y;

}

void main()

{

clrscr();

swap(10,20);

swap(10.15f,20.25f);

getch();

}

Please mark my answer the brainliest

And follow me

Similar questions