what is the use of #pragma pack, wer it is used?
Answer Posted / sarabjit kaur
#pragma is a miscelleneous directive which is used to turn
on or off certain features.
It varies frm compiler to compiler
a. #pragma startup and #pragma exit
used to specify which function should b called upon startup
(before main()) or program exit(just before program
terminates)
such funtions should nt receive or return any valur
b. #pragma -warn used to surpress specific warning
#pragma warn -rvl return value warnings surpressed
#pragma warn -par parameter not used warnings surpressed
#pragma warn -rch unreachable code warnings surpressed
| Is This Answer Correct ? | 2 Yes | 3 No |
Post New Answer View All Answers
Explain the array representation of a binary tree in C.
Tell me about low level programming languages.
What is scope rule of function in c?
How can I call a function with an argument list built up at run time?
What are 3 types of structures?
Can the curly brackets { } be used to enclose a single line of code?
Draw a flowchart to produce a printed list of all the students over the age of 20 in a class .The input records contains the name and age of students. Assume a sentinel value of 99 for the age field of the trailer record
Can a variable be both constant and volatile?
Explain what’s a signal? Explain what do I use signals for?
How can I direct output to the printer?
How will you find a duplicate number in a array without negating the nos ?
Why #include is used in c language?
the maximum length of a character constant can be a) 1 character b) 8 characters c) 256 chaacters d) 125 characters
Why malloc is faster than calloc?
What are qualifiers in c?