Last active
August 29, 2015 14:15
-
-
Save GnsP/41114784385319022a51 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This is a simple C program to experiment with the GCC Compilation Steps | |
// It uses the #define directives below only to provide a good visualization | |
// of the preprocessing step. | |
// author : Ganesh Prasad (gnsp) | |
#define ONE 1 | |
#define TWO 2 | |
#define EXIT_OK 0 | |
#define EXIT_FAILURE 1 | |
int main(){ | |
if( ONE + TWO == 3 ){ | |
return EXIT_OK; | |
} | |
else return EXIT_FAILURE; // This line will never get executed, these | |
// comments will never cross preprocessing too. | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment