Write a Program to find the largest of 4 no using macros.



Write a Program to find the largest of 4 no using macros...

Answer / Saurabh Khare

Unfortunately, C++ does not support macro for finding the maximum of four numbers. Instead, you can write a function or use standard template library (STL) functions like std::max_element to achieve this.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

What is java and c++?

1 Answers  


When is the copy constructor called?

1 Answers  


What is tellg () in c++?

1 Answers  


Which software is best for c++ programming?

1 Answers  


Write any small program that will compile in "C" but not in "C++"?

4 Answers  


what is software cycle? What is a mission critical system ? What is the important aspect of a real-time system ? Explain the difference between microkernel and macro kernel. Give an example of microkernel.Why paging is used ? Which is the best page replacement algo and Why ? What is software life cycle ? How much time is spent usually in each phases and why Which one do U want to work if selected in Honeywell ? Which are the different types of testing ? What is a distributed system ? Some questions about CSP. Which languages do U know ? What are the differences between Pascal and C. questions from Compiler construction and Lisp. Which are the different computer architecture? What is the requirement in MIMD ? What is the difference between RISC and CISC processors ? Difference between loosely coupled and tightly coupled systems ? What is an open system?

1 Answers   Honeywell,


throw Can constructors exceptions?

1 Answers  


What is the difference between operator new and the new operator?

3 Answers   Amazon, TCS, Wipro,


Write a C++ Program to check whether a number is prime number or not?

1 Answers   IBS,


In java a final class is a class that cannot be derived. How can you make a similar class in C++

1 Answers  


Why isn't sizeof for a struct equal to the sum of sizeof of each member?

1 Answers  


Explain terminate() and unexpected() function?

1 Answers  


Categories