What is #progma and where it is used?

Answers were Sorted based on User's Feedback



What is #progma and where it is used?..

Answer / vijay visana

The #pragma directives offer a way for each compiler to
offer machine- and operating-system-specific features while
retaining overall compatibility with the C and C++
languages. Pragmas are machine- or operating-system-
specific by definition, and are usually different for every
compiler.

Is This Answer Correct ?    4 Yes 0 No

What is #progma and where it is used?..

Answer / wizards

Some operating systems and compilers offers some different
features say align of data etc, and will not work on others.
To work these special features on specific OS/compilres and
should get the functionality of program on others we will
use #pragma directive

Is This Answer Correct ?    2 Yes 0 No

What is #progma and where it is used?..

Answer / saurabh srivastava

pragma is a pre processor directive thaat helps to perform
some compiler specific task, like turbo c allows to write
assembly language in c compiler,
pragma differs, system to system.

Is This Answer Correct ?    2 Yes 1 No

What is #progma and where it is used?..

Answer / vishal kumar jaiswal

it is compiler dependent preprocessor i.e all the compiler are does not support this preprocessor.
some #pragma are used here this purpose
#pragma warn -rvl // retruns value warning
#pragma warn -par // parameter not used warning
#pragma warn -rch //unreachable code warning

Is This Answer Correct ?    0 Yes 0 No

What is #progma and where it is used?..

Answer / sahadev tarei

for bit pading it is used.after compilation the compiler
takes some extra bits.for elimeting that bit we required #progma

Is This Answer Correct ?    3 Yes 9 No

Post New Answer

More MFC Interview Questions

What?s the difference between Modal and Modeless Dialog?

12 Answers   Jekson, Usl India,


1)At run-time, you can change the icon by calling the LoadIcon() function?

2 Answers  


What function is called by a document class to notify views that the document has been changed?

2 Answers  


if no message handler is available for a message then will deal with the message ? does window proving any default mechanism?

2 Answers   Patni,


What is the range of intensity of RGB

1 Answers  






What are the differences between MFC Exception macros and C++ exception keywords?

2 Answers  


How you find memory leaks?

4 Answers   ABB,


1)How to load an icon on a button as Dynamically ?

1 Answers   HCL,


What is the difference between Synchronous sockets and asynchronous sockets?

2 Answers  


if i modified data in 1 view how does the other view knows

2 Answers   Siemens,


What is the use of message map ?

5 Answers   TCS,


What is the difference between hinsrtance and hprevinstance in WinMain function?

3 Answers  


Categories