Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#include <stdio.h>
#include <stdlib.h>
typedef char bool;
#define TRUE 1
#define FALSE 0
void func(bool initialize)
{
int coolvar;
if (initialize)
{
coolvar = 0x1234;
}
printf("%s value: 0x%x\n", initialize ? "initialized" : "uninitialized" ,coolvar);
}
int main()
{
printf("Visual Studio compilter version number: %i\n", _MSC_FULL_VER);
#ifdef _DEBUG
printf("DEBUG BUILD\n\n");
#else
printf("RELEASE BUILD\n\n");
#endif
func(TRUE);
func(FALSE);
return EXIT_SUCCESS;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.