Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
6 years, 10 months ago.
can we choose from c++ to c ?
hello guys i am new to mbed , how to chose c language is it possible? thanks
1 Answer
6 years, 10 months ago.
If a file ends in .c the compiler will assume it's c, if it ends in .cpp the compiler will assume it's c++.
The API is c++ but (with a couple of obscure exceptions) c is a subset of c++. So you can write your program in c and compile it as if it was c++ it will still work fine.