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
Is fortran still used in 2018?
What is the difference between variable declaration and variable definition in c?
Why is c so popular?
Why do we use static in c?
a character or group of characters that defines a register,or a part of storage a) memory b) byte c) address d) linear list
What is the difference between new and malloc functions?
How can variables be characterized?
Which is better between malloc and calloc?
main() { int i = 10; printf(" %d %d %d ", ++i, i++, ++i); }
Can you write the algorithm for Queue?
Can math operations be performed on a void pointer?
Write a program to print fibonacci series without using recursion?
How arrays can be passed to a user defined function
What are the advantages and disadvantages of a heap?
What is a global variable in c?