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
What are the advantages of Macro over function?
Explain how can you tell whether a program was compiled using c versus c++?
What is table lookup in c?
c program to compute AREA under integral
Where are c variables stored in memory?
Can a file other than a .h file be included with #include?
What is the use of ?
write a programe to accept any two number and check the following condition using goto state ment.if a>b,print a & find whether it is even or odd and then print.and a
What is main return c?
Explain the difference between malloc() and calloc() in c?
The statement, int(*x[]) () what does in indicate?
What is a newline escape sequence?
a single linked list consists of nodes a to z .print the nodes in reverse order from z to a using recursion
Why c is called a middle level language?
Did c have any year 2000 problems?