Question: must be done in c programming 1. Answer the following questions: a. (10 pts) Write C macro with name give info which takes two argument

must be done in c programming 1. Answer the following questions: a.must be done in c programming

1. Answer the following questions: a. (10 pts) Write C macro with name give info which takes two argument such that first arguments is character array and second one is an integer. For these given inputs: char ders ksaltma[31:{'A','C','M'); int code=222; give info(ksaltma.code); gives following output: Department: ACM Course Code=222 b. (10 pts) Write C macro with name MAX which returns the bigger number for given two arguments0. (don't forget that macro arguments are typless). C. (5 points) What is the output of this program? #include using namespace std; #define PR(id) printf("The value of" #id" is) int main { int = 10; PRIL return 0; }

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!