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
Explain the use of 'auto' keyword
Explain how can I open a file so that other programs can update it at the same time?
In this assignment you are asked to write a multithreaded program to find the duplicates in an array of 10 million integers. The integers are between -5000,000 to 5000,000 and are generated randomly. Use 10 threads, each thread works on 1000,000 integers. Compare the time needed to accomplish the task with single thread of execution program. Do not include the time to fill the array with integers in the execution time.
What is the modulus operator?
What would happen to X in this expression: X += 15; (assuming the value of X is 5)
Write a program to print ASCII code for a given digit.
Can static variables be declared in a header file?
Is null always equal to 0(zero)?
List some of the static data structures in C?
What are categories used for in c?
What is variables in c?
What are the storage classes in C?
When would you use a pointer to a function?
Explain how do you sort filenames in a directory?
What are the rules for the identifier?