Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

WRITE IN C LANGUAGE 1. Answer the following questions: a. (10 pts) Write C macro with name give info which takes two argument such that

image text in transcribed

WRITE IN C LANGUAGE

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.cede); 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 tvpless). c. (5 points) What is the output of this program? #include using namespace std: #define PR(id) printf("The value of" #id" is) int maino { int i = 10; PRCD): return 0;}

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Object Oriented Databases Prentice Hall International Series In Computer Science

Authors: John G. Hughes

1st Edition

0136298745, 978-0136298748

More Books

Students also viewed these Databases questions

Question

=+ Are there additional forms of employee representation?

Answered: 1 week ago

Question

=+What is the nature of their impact?

Answered: 1 week ago