SlideShare a Scribd company logo
//Program using function overloading
#include<iostream.h>
#include<conio.h>
{
int vol(int);
float vol(float, int);
long vol(int, int, int);
int vol(int x)
{
return(x*x*x);
}
float vol(float, int)
{
return(3.14*x*x*y);
}
long vol(int x, int y, int z)
{
return(x*y*z);
}
getch();
}

More Related Content

What's hot (19)

PDF
Docuemnto 6
Diana597594
 
PDF
Swift クラスのイニシャライザー #devsap
Tomohiro Kumagai
 
DOCX
Rafael torrest
rfltorres
 
TXT
How
AimanNour
 
DOCX
Memanggil prosedur sendiri dari program utama 1
Wildan Live
 
PDF
Bcsl 033 data and file structures lab s1-2
Dr. Loganathan R
 
ODP
Mikstura it2013
Adam Przybyła
 
PPTX
The Flavor of TypeScript
Dmitry Sheiko
 
PDF
6.1 Шаблоны классов
DEVTYPE
 
PDF
Event loops in java script 01 - stack
Vishnu Padmanabhan
 
TXT
Los fantastico
Brenda Jazmin
 
PDF
DIBUJO EN JFRAME CASA
Anel Sosa
 
PDF
数式を構文解析した話
y1r96 Ueno
 
DOCX
Img1
Cinthia AM
 
PDF
Java Week7 Notepad
Chaitanya Rajkumar Limmala
 
PPTX
Java осень 2012 лекция 6
Technopark
 
DOCX
exercise of basic computer programming.docx
miftah88
 
Docuemnto 6
Diana597594
 
Swift クラスのイニシャライザー #devsap
Tomohiro Kumagai
 
Rafael torrest
rfltorres
 
Memanggil prosedur sendiri dari program utama 1
Wildan Live
 
Bcsl 033 data and file structures lab s1-2
Dr. Loganathan R
 
Mikstura it2013
Adam Przybyła
 
The Flavor of TypeScript
Dmitry Sheiko
 
6.1 Шаблоны классов
DEVTYPE
 
Event loops in java script 01 - stack
Vishnu Padmanabhan
 
Los fantastico
Brenda Jazmin
 
DIBUJO EN JFRAME CASA
Anel Sosa
 
数式を構文解析した話
y1r96 Ueno
 
Java Week7 Notepad
Chaitanya Rajkumar Limmala
 
Java осень 2012 лекция 6
Technopark
 
exercise of basic computer programming.docx
miftah88
 

More from Swarup Boro (20)

DOCX
Concatenation of two strings using class in c++
Swarup Boro
 
DOCX
Program: Inheritance in Class - to find topper out of 10 students
Swarup Boro
 
DOCX
Array using recursion
Swarup Boro
 
DOCX
Binary addition using class concept in c++
Swarup Boro
 
DOCX
Study of Diffusion of solids in Liquids
Swarup Boro
 
TXT
Program to sort array using insertion sort
Swarup Boro
 
TXT
Program to find the avg of two numbers
Swarup Boro
 
TXT
Program to find factorial of a number
Swarup Boro
 
TXT
Canteen management program
Swarup Boro
 
TXT
C++ program using class
Swarup Boro
 
TXT
Railway reservation
Swarup Boro
 
PDF
Boolean
Swarup Boro
 
PDF
Classes
Swarup Boro
 
PDF
Constructor & destructor
Swarup Boro
 
PDF
Arrays and library functions
Swarup Boro
 
PDF
Pointers
Swarup Boro
 
PDF
Queue
Swarup Boro
 
PDF
Structures in c++
Swarup Boro
 
PDF
Stack
Swarup Boro
 
PDF
Functions
Swarup Boro
 
Concatenation of two strings using class in c++
Swarup Boro
 
Program: Inheritance in Class - to find topper out of 10 students
Swarup Boro
 
Array using recursion
Swarup Boro
 
Binary addition using class concept in c++
Swarup Boro
 
Study of Diffusion of solids in Liquids
Swarup Boro
 
Program to sort array using insertion sort
Swarup Boro
 
Program to find the avg of two numbers
Swarup Boro
 
Program to find factorial of a number
Swarup Boro
 
Canteen management program
Swarup Boro
 
C++ program using class
Swarup Boro
 
Railway reservation
Swarup Boro
 
Boolean
Swarup Boro
 
Classes
Swarup Boro
 
Constructor & destructor
Swarup Boro
 
Arrays and library functions
Swarup Boro
 
Pointers
Swarup Boro
 
Structures in c++
Swarup Boro
 
Functions
Swarup Boro
 
Ad

Recently uploaded (8)

PPTX
MGA_SITWASYONG_PANGWIKA_SA_PILIPINAS.pptx
megmary1723
 
PPTX
2jjjjjjjmmmmmmmmmmmmmmmmmmmmkkkkkkklk.pptx
PELAEZJOANNAMAYL
 
PDF
bussiness studies class 12th presentation
PrachiGupta511065
 
PPTX
Untitled design_20250707_135445_0000.pptx
ssusera760cd
 
PPTX
CLASE DERMATITIS REaaaaACCIONALES I.pptx
LUISALBERTOBAUTISTAM4
 
PPTX
2. TUGAS 2_GLIKOLISIS_LA ODE RUSDI ANTON_G2J124016_.pptx
Hitoride3
 
PDF
SÁCH PTTH trường đại học y dược thành phố hồ chí minh
LATHKIMCNG
 
PDF
eve 2025 stratigakis202654435477543336.pdf
ssuserf9afe7
 
MGA_SITWASYONG_PANGWIKA_SA_PILIPINAS.pptx
megmary1723
 
2jjjjjjjmmmmmmmmmmmmmmmmmmmmkkkkkkklk.pptx
PELAEZJOANNAMAYL
 
bussiness studies class 12th presentation
PrachiGupta511065
 
Untitled design_20250707_135445_0000.pptx
ssusera760cd
 
CLASE DERMATITIS REaaaaACCIONALES I.pptx
LUISALBERTOBAUTISTAM4
 
2. TUGAS 2_GLIKOLISIS_LA ODE RUSDI ANTON_G2J124016_.pptx
Hitoride3
 
SÁCH PTTH trường đại học y dược thành phố hồ chí minh
LATHKIMCNG
 
eve 2025 stratigakis202654435477543336.pdf
ssuserf9afe7
 
Ad

Program using function overloading

  • 1. //Program using function overloading #include<iostream.h> #include<conio.h> { int vol(int); float vol(float, int); long vol(int, int, int); int vol(int x) { return(x*x*x); } float vol(float, int) { return(3.14*x*x*y); } long vol(int x, int y, int z) { return(x*y*z); } getch(); }