Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C programming in Visual Studio 2008

Do you know if it's possible to programm c (not c++) in Visual Studio 2008? If yes then how? I haven't found any component for that.

Regards.

like image 854
user101375 Avatar asked Jul 18 '26 00:07

user101375


1 Answers

Just save the file with .c extension instead of .cpp and it will compile as C instead of C++. To be extra cautious, you can go to the project settings, under "Project -> Properties -> Configuration Properties -> C/C++ -> Advanced", make sure that "Compile As" says "Compile as C code (/TC)".

like image 61
shoosh Avatar answered Jul 19 '26 14:07

shoosh



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!