what is the use of macro program



what is the use of macro program..

Answer / chaitali anand tendulkar

Macro is preprocessor directives that are defined using #
define. The combination backslash/new line is deleted
before preprocessing begins, so the directives can be
spread over several physical lines. this lines should
constitute a single logical line.

Is This Answer Correct ?    5 Yes 2 No

Post New Answer

More C Interview Questions

Why do we need functions in c?

0 Answers  


how can i print "hello".please consider inverted commas as well.i want to print on console: "hello"

4 Answers   Wipro,


Explain the difference between call by value and call by reference in c language?

0 Answers  


The number of measuring units from an arbitarary starting point in a record,area,or control block to some other point a) recording pointer b) offset c) branching d) none

0 Answers  


a function gets called when the function name is followed by a a) semicolon (;) b) period(.) c) ! d) none of the above

0 Answers  






Is it fine to write void main () or main () in c?

0 Answers  


what is the first address that gets stored in stack according to a C or C++ compiler???? or what will be the first address that gets stored when we write a C source code????????

2 Answers   Apple,


Is it possible to create recycle bin in mobiles?

2 Answers  


You have an int array with n elements and a structure with three int members. ie struct No { unsigned int no1; unsigned int no2; unsigned int no3; }; Point1.Lets say 1 byte in the array element is represented like this - 1st 3 bits from LSB is one number, next 2 bits are 2nd no and last 3 bits are 3rd no. Now write a function, struct No* ExtractNos(unsigned int *, int count) which extracts each byte from array and converts LSByte in the order mentioned in point1.and save it the structure no1, no2, no3. in the function struct No* ExtractNos(unsigned int *, int count), first parameter points to the base address of array and second parameter says the no of elements in the array. For example: if your array LSB is Hex F7 then result no1 = 7, no2 = 2, no3 = 7. In the same way convert all the elements from the array and save the result in array of structure.

2 Answers   Qualcomm,


find a number whether it is even or odd without using any control structures and relational operators?

22 Answers   Microsoft, Shashank Private Limited,


print a "hello" word without using printf n puts in c language

6 Answers  


how to execute a program using if else condition and the output should enter number and the number is odd only...

0 Answers  


Categories