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
write a program to print data of 5 five students with structures?
Explain the use of #pragma exit?
Difference between constant pointer and pointer to a constant.
What is the difference between NULL and NUL?
What is meant by operator precedence?
What is the difference between #include
How can I find the modification date of a file?
Explain heap and queue.
What is cohesion and coupling in c?
Which header file is essential for using strcmp function?
What is a pointer value and address in c?
What is console in c language?
Why we use break in c?
Explain what is the difference between a free-standing and a hosted environment?
What is the Purpose of 'extern' keyword in a function declaration?