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


Please Help Members By Posting Answers For Below Questions

How can I call system when parameters (filenames, etc.) Of the executed command arent known until run time?

593


Explain what standard functions are available to manipulate strings?

613


What is data structure in c language?

606


How do you list a file’s date and time?

635


What is typedef struct in c?

584






What is modifier & how many types of modifiers available in c?

612


On most computers additional memory that is accessed through an adapter of feature card along with a device driver program. a) user memory b) conventional memory c) expandedmemory d) area

664


What are the applications of c language?

626


There seem to be a few missing operators ..

619


What is the basic structure of c?

557


Is it possible to execute code even after the program exits the main() function?

817


If you know then define #pragma?

676


What are derived data types in c?

611


What is main () in c?

588


i have to apply for rbi before that i need to know the the syllabus for the entrance questions. whethet it may be aps or techinical

1844