answersLogoWhite

0


Best Answer

#include <iostream.h> #include <conio.h> void main() { clrscr(); int largest(int,int,int); cout<<"Enter 3 Integer Numbers\n"; int a,b,c; cin>>a>>b>>c; int result; result=largest(a,b,c); cout<<"\n\nLargest Value of Inputed is "<<result; getch(); } inline largest(int a,int b,int c) { int z; z=(a>b)?((a>c)?a:c):((b>c)?b:c); return(z); }

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Write a macro that obtains the largest of three numbers?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you write a macro to find the biggest of 3 numbers in c plus plus?

#define biggest (a) &gt; (b) &amp;&amp; (a) &gt; (c) ? (a) : (b) &gt; (c) ? (b) : (c)


How does one write a keyboard macro in Java?

Download


How do you turn an Excel cell a colour by pressing one button?

Click on the Fill Color tool icon. You could also write a macro to change the colour and assign it to a button on the worksheet.Click on the Fill Color tool icon. You could also write a macro to change the colour and assign it to a button on the worksheet.Click on the Fill Color tool icon. You could also write a macro to change the colour and assign it to a button on the worksheet.Click on the Fill Color tool icon. You could also write a macro to change the colour and assign it to a button on the worksheet.Click on the Fill Color tool icon. You could also write a macro to change the colour and assign it to a button on the worksheet.Click on the Fill Color tool icon. You could also write a macro to change the colour and assign it to a button on the worksheet.Click on the Fill Color tool icon. You could also write a macro to change the colour and assign it to a button on the worksheet.Click on the Fill Color tool icon. You could also write a macro to change the colour and assign it to a button on the worksheet.Click on the Fill Color tool icon. You could also write a macro to change the colour and assign it to a button on the worksheet.Click on the Fill Color tool icon. You could also write a macro to change the colour and assign it to a button on the worksheet.Click on the Fill Color tool icon. You could also write a macro to change the colour and assign it to a button on the worksheet.


Of the macro nutrients we consume which one is required in the largest daily amount?

Water


How do you divide two numbers in a macro?

#define TOTAL_NUM_FFTS ((int) (NO_SAMPLES) / (FFT_SIZE))


Is skin a protein?

no its a lipidSkin is the largest organ. So it is made up all macro molecules


Write a program in c plus plus to implement macro processor?

Don't write, it is already written, google for 'cpp'.


What is macro nutrition?

Macro nutrition is looking at you caloric intake from the perspective of protein, carbohydrates and fats. Macro numbers like 50/30/20 means that you get 50% of calories from protein, 30% from carbohydrates and 20% from fat. Different goals require different macro numbers, as well as different people have different macros to fulfill their fitness needs. This is opposed to micro nutrition that keeps track of vitamins, minerals, amino acids, etc.


Write a preprocessor directive to accomplish define macro square volume that computes the volume of a square the macro takes one argument?

Pick one: #define SQUARE_AREA(A) ((A) * (A)) #define CUBE_VOLUME(A) ((A) * (A) * (A))


How many lines of code on average can a programmer writetest and document?

The answer will vary depending on the development environment being used. Some development environments e.g. Microsofts Visual Studio, allow developers to write macros that will write code for them. I have a 3000 line macro that I use to build class libraries. Each time the macro is run it will write 1500 lines of code so is this code I have written after all, I wrote the macro that wrote the code?


What is the difference between executing a macro and calling a macro?

Calling a macro loads the macro into memory, while executing the macro runs the macro.


What is macro call?

Nested macro calls refer to the macro calls within the macros. A macros is available within other macro definitions also. In the scenario when a macro call occurs, which contains another macro call, the macro processor generates the nested macro definition as text and places it on the input stack. The definition of the macro is then scanned and the macro processor complies it.