MVS 2008 C/C++ Create File C

 

- Info:

- This tutorial shows how to create C file.

 

- Procedure:

- Create C/C++ Project

- RC on Source Files Add New Item... Code C++ File (.cpp) Name: Test.c Add Paste Test.c

- RC on Test.c Properties Configuration Properties C/C++ Advanced Compile As: Compile as C Code (/TC)

 

Test.c

#include <stdio.h>

int main(void) {

printf("Hello World!\n");

return 1;

}