Skip to content

Instantly share code, notes, and snippets.

@1nnOc3nt
Last active January 4, 2019 02:06
Show Gist options
  • Save 1nnOc3nt/1d76b74941ed2ab5ea01b2befe0ebf19 to your computer and use it in GitHub Desktop.
Save 1nnOc3nt/1d76b74941ed2ab5ea01b2befe0ebf19 to your computer and use it in GitHub Desktop.
#include <stdio.h>
#define pi 3.14
#ifdef __unix__ /* __unix__ is usually defined by compilers targeting Unix systems */
printf("using linux");
#elif defined _WIN32 /* _WIN32 is usually defined by compilers targeting 32 or 64 bit Windows systems */
printf("using windows");
#endif
int main(int argc, char const *argv[])
{
printf("Hello World!\nThis is pi number: %2f", pi); //This is a comment
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment