Skip to content

Instantly share code, notes, and snippets.

@LokeshKumarES
Created December 26, 2021 12:46
Show Gist options
  • Save LokeshKumarES/cab5518c962c298d4725b4338b21a3aa to your computer and use it in GitHub Desktop.
Save LokeshKumarES/cab5518c962c298d4725b4338b21a3aa to your computer and use it in GitHub Desktop.
#pragma Miscellaneous Directives, for assigning order to functions.
# include<stdio.h>
void abc();
void xyz();
# pragma startup abc
# pragma exit xyz
void main()
{
printf("\n Main Function.");
}
void abc()
{
printf("\n ABC Function.");
}
void xyz()
{
printf("\n XYZ Function.");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment