
- C# Basic Tutorial
- C# - Home
- C# - Overview
- C# - Environment
- C# - Program Structure
- C# - Basic Syntax
- C# - Data Types
- C# - Type Conversion
- C# - Variables
- C# - Constants
- C# - Operators
- C# - Decision Making
- C# - Loops
- C# - Encapsulation
- C# - Methods
- C# - Nullables
- C# - Arrays
- C# - Strings
- C# - Structure
- C# - Enums
- C# - Classes
- C# - Inheritance
- C# - Polymorphism
- C# - Operator Overloading
- C# - Interfaces
- C# - Namespaces
- C# - Preprocessor Directives
- C# - Regular Expressions
- C# - Exception Handling
- C# - File I/O
- C# Advanced Tutorial
- C# - Attributes
- C# - Reflection
- C# - Properties
- C# - Indexers
- C# - Delegates
- C# - Events
- C# - Collections
- C# - Generics
- C# - Anonymous Methods
- C# - Unsafe Codes
- C# - Multithreading
- C# Useful Resources
- C# - Questions and Answers
- C# - Quick Guide
- C# - Useful Resources
- C# - Discussion
Differences between C and C#
C is a general-purpose, high-level language that was originally developed by Dennis M. Ritchie to develop the UNIX operating system at Bell Labs. C was originally first implemented on the DEC PDP-11 computer in 1972.
C# is a simple, modern, general-purpose, object-oriented programming language developed by Microsoft within its .NET initiative led by Anders Hejlsberg.
The following are the differences between C and C#.
Language
C language is a structured programming language, whereas C# is an object-orinted language.
Memory Management
C has manual memory management, whereas memory management is handled automatically in C#.
Garbage Collection
C do not have a garbage collector whereas C# has CLR for garbage collection.
Platforms
C program can be run on different platforms whereas C# is generally used only on Windows and needs the .NET framework.
- Related Articles
- Differences between C++ and C#
- Major differences between C# and Java
- Differences between C++ string == and compare()?
- What are the differences between C++ and Java?
- What are the differences between C and Java?
- What are the differences between C++ and Go?
- What are the differences between bitwise and logical AND operators in C/C++
- What are the differences between Thunderbolt and USB-C?
- What are the differences between struct and class in C++?
- What are the differences between constructors and destructors in C#?
- What are the differences between ref and out parameters in C#?
- What are the differences between a class and struct in C#?
- Differences between pass by value and pass by reference in C++
- What are the differences between -std = c++11 and -std = gnu++11?
- What are the differences between class methods and class members in C#?
