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

Explain Doc/View architecture

6 Answers   Huawei,


What are the advantages of using Doc/View or SDI over DialogBox

2 Answers  


how u can move CDC pointer to one line in cview?

2 Answers  


What is model and modeless dialog box ? Give some examples?

2 Answers   Mphasis,


I want recent paper pattern for HP company?

0 Answers   HP,






What is the difference between the Encapsulation and Abstraction

25 Answers   HCL, Invensys, TCS, Wipro,


what is the size of a process

2 Answers   E Logic, IBM,


What is #progma and where it is used?

5 Answers   L&T,


What is Thread ?(VC++)What is the difference between Cmutex and Csemaphone?

5 Answers   Atos Origin,


what are the feauters of CObject

4 Answers   Siemens, Wipro,


how does conditionally close the Dialog Box ?

2 Answers   Infotech,


What types of threads are supported by MFC framework?

2 Answers  


Categories