C# – Difference between use C# and C or C++ on windows mobile

cwindows-mobile

I am new to windows mobile development. I have certain doubts related to windows mobile development which are as follows.

1) What is the major difference between C# and C (C++) as far as selecting language for development. ( not syntactically ) .

2) Which language should i select for development and Why ??

3) If i go C# as a mobile development then can i have access to all APIs for C# on
desktop .

Best Answer

Aside from syntax, the main difference is that C# is managed and C++ isn't(unless you're using managed c++?)

They're both OO languages(not C). C++ allows you to do your own memory management(which could be a good or bad) while C# is managed code so garbage collection is mostly done for you by the runtime. If you use C#, you will be able to access all other managed assemblies targeted toward the CLR.