write a program to find the largest of two numbers without
using for,while,switch,if else, conditional operator and do
while using c++ pgmng language
Answer Posted / vishal sharma
double largeone(double a,double b)
{
return(((a+b)/2) + ((a-b)/2));
}
| Is This Answer Correct ? | 9 Yes | 2 No |
Post New Answer View All Answers
class CTest { public: void someMethod() { int nCount = 0; cout << "This is some method --> " << nCount; } }; int main() { CTest *pctest; pctest->someMethod(); return 0; } It will executes the someMethod() and displays the value too. how is it possible with our creating memory for the class . i think iam not creating object for the class. Thanks in Advance... Prakash
write a programe to calculate the simple intrest and compund intrest using by function overlading
what is difference between class template and template class?
Is oop better than procedural?
Is react oop?
Write a program to reverse a string using recursive function?
What are main features of oop?
What do you mean by Encapsulation?
Which type does string inherit from?
Which is not an object oriented programming language?
Why polymorphism is used in oops?
What is Difeerence between List obj=new ArrayList(); and ArrayList obj=new ArrayList()?
What does sksksk mean in text slang?
Can we define a class within the interface?
what are the different types of qualifier in java?