Explain #pragma statements?
Submitted by: AdministratorThe #pragma Directives are used to turn ON or OFF certain features. They vary from compiler to compiler.
Examples of pragmas are:
#pragma startup // you can use this to execute a function at startup of a program
#pragma exit // you can use this to execute a function at exiting of a program
#pragma warn –rvl // used to suppress return value not used warning
#pragma warn –par // used to suppress parameter not used warning
#pragma warn –rch // used to suppress unreachable code warning
Submitted by: Administrator
Examples of pragmas are:
#pragma startup // you can use this to execute a function at startup of a program
#pragma exit // you can use this to execute a function at exiting of a program
#pragma warn –rvl // used to suppress return value not used warning
#pragma warn –par // used to suppress parameter not used warning
#pragma warn –rch // used to suppress unreachable code warning
Submitted by: Administrator
Read Online C Pointers Job Interview Questions And Answers
Top C Pointers Questions
| ☺ | What would be the equivalent pointer expression for referring the array element a[i][j][k][l] |
| ☺ | Tell me with an example the self-referential structure? |
| ☺ | Explain what is the purpose of "extern" keyword in a function declaration? |
| ☺ | What is the difference between exit() and _exit() function? |
| ☺ | Do you know the use of fflush() function? |
Top C Programming Categories
| ☺ | C Functions Interview Questions. |
| ☺ | C Pointers Interview Questions. |
| ☺ | C Preprocessor Interview Questions. |
