Basic and Advance C Question:

Download Job Interview Questions and Answers PDF

What are pragmas and what are they good for?

C Programming Interview Question
C Programming Interview Question

Answer:

The #pragma directive provides a single, well-defined ``escape hatch'' which can be used for all sorts of (nonportable) implementation-specific controls and extensions: source listing control, structure packing, warning suppression (like lint's old /* NOTREACHED */ comments), etc.

Download C Programming Interview Questions And Answers PDF

Previous QuestionNext Question
What should malloc0 do? Return a null pointer or a pointer to 0 bytes?What is the correct declaration of main?