1.

Write the output of the following C++ code. Also, write the name of featureof Object Oriented Programming used in the following program jointly illustrated by the Function 1 to Function 4. void My_fun ( ) // Function 1{for (int I=1 ; I

Answer»

Hey Buddy

Here is the Answer

----------------------------------------

As function with parameters Char, int is called first, so FUNCTION 4 will be executed first

So, output for function 4 is

####

Now function with parameters int, int is called, so function 3 will be executed

Output for function 3

7 14 21

So, output for this code will be

####

7 14 21

Note :- Function overloading is DONE only when

  • Name of functions are same
  • order of parameters are different
  • number of parameters are different

I can help you in JAVA, C, C++, HTML, CSS AND JAVA SCRIPT

Peace

:)



Discussion

No Comment Found