1.

What is a pre-processor?

2.

What is the difference between a macro and a function?

1.

Write a macro to calculate area and perimeter of a rectangle.

2.

Write a macro to compare two numbers.

3.

Write a macro to find average of two numbers.

4.

Write a macro to find absolute value of a number.

5.

Write a macro to calculate simple interest from principal, rate of interest and time.

Simple interest = (principal*rate of interest*time)/100.

Simple interest = (principal*rate of interest*time)/100.