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
source share