1.

Which statement replaces all occurrences of the identifier with string?(a) # define identifier string(b) # include(c) # define MACRO()(d) # ifdefThe question was posed to me in a job interview.My doubt is from The Compilation Process topic in portion Writing Software for Embedded Systems of Embedded Systems

Answer»

Right CHOICE is (a) # define IDENTIFIER string

For EXPLANATION I would say: # define statement can replace all occurrences of the identifier with string. Similarly, it is able to define the constants, which also MAKE the code EASIER to understand.



Discussion

No Comment Found

Related InterviewSolutions