Sunday 11 January 2009

What is #pragma startup and #pragma exit in c programming language?


Syntax:



#pragma startup [priority]

#pragma exit [priority]



Where priority is optional integral number.

For user priority varies from 64 to 255

For c libraries priority varies from 0 to 63

Default priority is 100.



pragma startup always execute the function before the main function pragma exit always execute the function after the main function.Function declaration of must be before

No comments:

Post a Comment