Find greatest of two numbers using macro

Answer Posted / senthil

#define Greatest(a,b) (a>b)?a:b

Is This Answer Correct ?    45 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a program to check prime number in c programming?

592


Is c procedural or functional?

582


Explain what are bus errors, memory faults, and core dumps?

784


how to introdu5ce my self in serco

1521


What is getch c?

847






What is the difference between text and binary i/o?

586


Hi can anyone tell what is a start up code?

1609


What is the easiest sorting method to use?

632


How can I manipulate individual bits?

604


Is it possible to execute code even after the program exits the main() function?

805


Differentiate between ordinary variable and pointer in c.

613


What is the scope of local variable in c?

572


How do I create a directory? How do I remove a directory (and its contents)?

600


Why c is called a middle level language?

634


An instruction which is analysed and acted upon by the processor prior to the compiler going its work a) directive b) constructive c) constant d) absolute mode

603