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

What is local and global variable in c?

616


What are near, far and huge pointers?

648


I came across some code that puts a (void) cast before each call to printf. Why?

678


What is c mainly used for?

599


What are the 5 elements of structure?

566






What are the types of type specifiers?

623


Explain what are its uses in c programming?

595


Why is c so powerful?

685


What is the difference between null pointer and wild pointer?

636


Write a program to print “hello world” without using semicolon?

672


What are categories used for in c?

568


What is the difference between memcpy and memmove?

605


Can a void pointer point to a function?

571


What is the modulus operator?

736


What is pointer to pointer in c?

634