Visual Studio 2010 Compiling C code

Posted by Corsen2000 on Stack Overflow See other posts from Stack Overflow or by Corsen2000
Published on 2010-06-06T19:14:48Z Indexed on 2010/06/06 19:22 UTC
Read the original article Hit count: 236

Filed under:
|

I have the following code snippet. This is a c file in visual studio 2010. If i try to compile this with the line: int hello = 10; commented out it will compile just fine. If I comment that line in it will not compile. Am I missing something or should I not be using Visual Studio 2010 to compile C code. If this is a Visual Studio problem can anyone recommend a easy to use IDE / Compiler that I can for C.

Thank You

int* x = (int*) calloc(1, sizeof(int));

*x = 5;

//int hello = 10;

printf("Hello World!  %i", *x);

getchar();

© Stack Overflow or respective owner

Related posts about c

    Related posts about visual-studio-2010