C Programming and Technical

output?
Q. What are macros? What are its advantages and disadvantages?

A. Macro is a Pre-processor.Major advantage of using the macro is to increase the speed of the execution of the program.
Major disadvantage of the macros are:
(i) No type checking is performed in macro. This may cause error.
(ii) A macro call may cause unexpected results

Read Solution (Total 0)

C Other Question

output?
What are the techniques you use for debugging?

A. (i)Using compiler's features
(ii)Read The Fine Module
(iii)printf( ) debugging
(iv)Code grinding
(v)Assertion
output?
Q. What is difference between Structure and Unions?

A. (i) In structure every member has its own memory whereas in union its members share the same member space.
(ii) In structure, it is possible to initialize all the members at the same time which is not
possible in case of union.
(iii) A structure requires more space than union(for the same type of members).
(iv) In union different nterpretations of the same memory space are possible which is not so in case of structures