Write a C++ program to represent the function overriding using AVERAGE() function.

#include <iostream> #include <string> using namespace std; int avrg( int , int ); int avrg( int , int, int); float avrg( float, int); int avrg(char, char); int main() {   int average;   cin >> average;   int averageI;   cin >> averageI;    float x;    cin >>x; float y;   cin >>y;   float averageF = avrg(x,y);   char averageC = avrg('x','y');... Continue Reading →

Create a website or blog at WordPress.com

Up ↑

Design a site like this with WordPress.com
Get started