Yes, on the properties of the file you can specify whether to compile as C or C++. It can also be set as a project default.
I believe files with the .c extensions are compiled as C, not C++.
Re:Visual C++ Cross-Platform Mobile
by billforsternz on Friday April 24, 2015 @07:26PM
(#9436512)
Please edit to add an asterisk in front of ptr in both cases.
It's the markdown getting in the way. You can tell by the varying italics.
Re:Visual C++ Cross-Platform Mobile
by billforsternz on Friday April 24, 2015 @11:50PM
(#9437130)
Indeed. Still needs to be fixed.
char ptr = malloc(10); // this is not valid C++
vs
char ptr = (char *)malloc(10); // This is usually required for Visual C++ (or was).