Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is C# a super set of C just like Objective-C and C++?

Tags:

c++

c

c#

Is C# a super set of C (like Objective-C and C++)?

I mean, can I write plain C in C#, just like I can do with the other mentioned languages?

like image 890
nacho4d Avatar asked Dec 21 '11 07:12

nacho4d


2 Answers

No you can not wirte C code in C# and it is not a superset of C or any other language. Read introduction about C# here http://msdn.microsoft.com/library/z1zx9t92.aspx

like image 187
Kashif Khan Avatar answered Sep 20 '22 19:09

Kashif Khan


No, C# just like the java. and they both is the C style language. but not the super set for C. they cannot support C language directly.

like image 37
qw20012 Avatar answered Sep 20 '22 19:09

qw20012