Answer Posted / jayasrinivas.donavalli
macro is a subroutine.
Need of Macro: Some times there is a need to call the set
of codedata again and agian in the program.In that
particular situation we can use macros.
Use of Macro can increase the efficiency of the program and
also decrease the length of the code.
Macro can be defined by using Define statement
| Is This Answer Correct ? | 8 Yes | 0 No |
Post New Answer View All Answers
program to find error in linklist.(i.e find whether any node point wrongly to previous nodes instead of next node)
How can I dynamically allocate arrays?
Are there namespaces in c?
When the macros gets expanded?
Which is not valid in C a) class aClass{public:int x;}; b) /* A comment */ c) char x=12;
diff between exptected result and requirement?
What is the use of sizeof?
What is a spanning Tree?
Want to know how to write a C program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL.
Which one would you prefer - a macro or a function?
any limit on the number of functions that might be present in a C program a) max 35 functions b) max 50 functions c) no limit d) none of the above
I was asked to write a program in c which when executed displays how many no.of clients are connected to the server.
Write a function stroverlap that takes (at least) two strings, and concatenates them, but does not duplicate any overlap. You only need to worry about overlaps between the end of the first string and the beginning of the second string. Examples: batman, manonthemoon = batmanonthemoon batmmamaman, mamamanonthemoon = batmmamamanonthemoon bat, man = batman batman, batman = batman batman, menonthemoon = batmanmenonthemoon
What is c definition?
What is the difference between exit() and _exit() function?