# pragma directive and its use in c

can someone tell me what #pragma does in c. what are its applications and why the above program does not give an output "inside v1" and 'inside v2' in the next program ...

# include<stdio.h> void v1(); void v2(); # pragma startup v1 # pragma exit v2 int main() { printf("inside main\n"); return 0; } void v1() { printf("inside v1\n"); } void v2() { printf("inside v2\n"); } 

I also want to know what the use of the #pragma directive is .... plz help

+4
source share
1 answer

#pragma are compilers / providers of specific directives for the compiler. You will need to find the documentation for the specific compiler you are using.

+9
source

Source: https://habr.com/ru/post/1307809/


All Articles