Hi all, Greeting for the day! as we all know C# mostly used for web programming and C/C++ for desktop programming. Even Microsoft has used C++ for its Window mobile 7 os. Why didn't they use C# for that.
I think you mean C#.NET, and no it is not even close to the mostly used web programming platform. C#.NET is not a suitable language for operating systems; it's a hybrid language. C++ is more mature, much much faster, and it gives you access to both high and low lever features.
c# program need framework,Its not a good idea to let your customer install framework to run your program
All you right but you do not focus another important point. C# is easy, C/C++ is hard. Anyway, i love java2ee
C# is far less used than C/C++ and C# is far less used on the web than many other languages. You're only reading Microsoft advertising. You can't make an operating system with C# because, initially, it's a slower, interpreted language; but, even then, it's too slow to do OS things which C excels at.
There are a lot of different languages and they are all built to do their own thing. C# / Java are higher level languages which are best for building applications. C(++) is a low level language that can talk to the hardware itself, thus allowing for extra functionality. However, higher level languages tend to be far easier. Many professionals learn a variety of programming languages to apply to whatever problem they have to deal with. I'm sure the Microsoft engineers who coded windows mobile 7 know both C# and C++, but C++ is a language which is better suited for operating system development, which is very low level.
Well, basically because C#.NET is too slow. It is an "interpreted language" as opposed to a "native language". And programs written in interpreted languages are not converted to machine code at compile time. And thus need "interpreting" each time they are run. Hence the .NET platform/framework that you have to download for .NET programs to work. This inadvertently makes C# .NET programs much slower than C++.
So what? Every PC with Windows installed has at least .NET 2.0. Most of them have 3.5. Not a big issue.
I beleive that C# is more used for desktop than web programming, although comparing to C++, C# definetly is used more for web programming. You use C++ when you need to implement oprimal and fast algorythms, platform dependent, drivers and stuff like that C# requires .NET platform to be installed. Therefore, its slower and platform dependent to be used for implementation of speed OS.
right , many people are still on xp and its really a pain to install 3.5 framework due to its large size.