Can somebody explain me the difference between C and C# in detail?

Posted on 2006-11-08
Last Modified: 2010-04-15
Can somebody explain me the difference between C and C# in detail.I am confused with the words.
Question by:tatikor_143
LVL 22

Expert Comment

ID: 17903112
go to wikipedia and look them up.  The differences are too huge to fit into this little box.


Author Comment

ID: 17903151
explain me the basic diferences in few sentences.
LVL 86

Expert Comment

ID: 17903517
The biggest and most notable differences are

C#: object oriented ./. C: not object oriented
C#: interpreted meta-language ./. C: compiled and linked into directly executable code
LVL 23

Accepted Solution

Mysidia earned 500 total points
ID: 17905819
C# has some different datatypes, the syntax for declaring types such as an array is different.

C# has classes, C does not

C# has many other language structures and flow control keywords and syntax, such as ''foreach' that C lacks

C has a preprocessor, supporting conditional compilation and macros, C# does not

C# is made by MS primarily for the .NET framework, C is not, and is a much older/more mature language.

Featured Post

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Retrun object in plist format 5 55
Problem with MFCApp 78 346
Intel debugger, idb, only seeing .c and .h, but no .f90 1 298
Preface I don't like visual development tools that are supposed to write a program for me. Even if it is Xcode and I can use Interface Builder. Yes, it is a perfect tool and has helped me a lot, mainly, in the beginning, when my programs were small…
Windows programmers of the C/C++ variety, how many of you realise that since Window 9x Microsoft has been lying to you about what constitutes Unicode ( They will have you believe that Unicode requires you to use…
The goal of this video is to provide viewers with basic examples to understand opening and reading files in the C programming language.
The goal of this video is to provide viewers with basic examples to understand and use switch statements in the C programming language.

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now