What is #pragma directive?how it is used in the program?
what is its advantages and disadvantages?

Answer Posted / kapil thakar

#pragma is used to give specific instruction to compiler...
like used only reg bank 3..

then
#pragma BANK_3
used be witten in ur code..

another example..

#pragma worning_3

display worning upto level 3

There are many more pragma dependent on compiler ...

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the use of keyword 'register' with respect to variables.

590


disply the following menu 1.Disply 2.Copy 3.Append; as per the menu do the file operations 4.Exit

1629


Why do we need arrays in c?

583


differentiate built-in functions and user – defined functions.

627


Explain what will the preprocessor do for a program?

604






Explain what is the benefit of using const for declaring constants?

614


Explain what is the use of a semicolon (;) at the end of every program statement?

734


What is c mainly used for?

598


Explain what is operator promotion?

637


Explain is it valid to address one element beyond the end of an array?

736


How can you find the exact size of a data type in c?

601


Can we initialize extern variable in c?

632


Why is c called c not d or e?

613


What is file in c language?

576


When do you not use the keyword 'return' when defining a function a) Always b) Never c) When the function returns void d) dfd

642