Other contributors have said "How can you use c pragma?" is the same question as "What is the use of 'pragma' in C language?" If you believe that these are not asking the same thing and should be answered differently, click here
A preprocessor directive that is not specified by the ISO standard. Pragmas often control actions of the compiler and linker. A pragma always begins with a number sign (#).
Note: There are comments associated with this question. See the
discussion page
to add to the conversation.
Because you have to: any executable statement in C must belong to one function or another; there mustn't be executable statements outside of functions.and it also reduces the length of the program