Tuesday, July 14, 2009

Can any1 plz briefly tell me about all kinds of C programming.?

1) C


2) C++


3) Visual C


4) Visual C++


5) C#


6) C# .NET


and any other; if there is!





Thanx

Can any1 plz briefly tell me about all kinds of C programming.?
1) C - C programming language, usually as defined in the "K%26amp;R" book (by Kernighan and Richie), second edition. Compilers for this language exist on at least Unix, Windows and Mac. This is probably the most important programming language of the 80's, imho. C is famous for allowing "assembly-like" programming, while its supporters would say it still has all the *important* features of a much more "designed" language like Pascal, which doesn't inherently allow low-level assembly-like operation. Hence the best of both worlds. Both C and Pascal are called "structural" languages, which basically means that they allow you to define your program from a sequential flow of function calls.





2) C++ - An attempted improvement and modernization of C created by Bjarne Stroustrup. It intends to keep all the speed of C but add optional object-oriented and generic programming features, as well as clean up some annoying syntax issues. Again this is widely available on at least Windows, Unix, Mac.





4) Visual C++ - A Microsoft product that contains a C++ and C compiler and associated tools as well as a graphical "IDE" (integrated development environment) with pretty slick debugger. When you use Visual C++, you are using a Microsoft product and writing programs for Windows machines. You might be using libraries provided in Visual C++ like "MFC" or "ATL" to make the program graphical or access other Windows operating system functionality. Both of those libraries are relevant only to Windows programs.





3) Visual C - Just an abbreviation for Visual C++. For instance, people refer to Visual C++ in abbreviated form as VC or MSVC. Note Visual C++ contains a standard C compiler as well inside it. Many C++ haters can still buy and enjoy Visual C++ and just happily use it for C.





5) C# - This is the "dotnet" language C# (I tend to say csharp for searchability). Dotnet is a new approach to computer programs from Microsoft that is more like Java. Like Java, it's basically an "interpreted" language, though MS has done a variety of things to take the stigma out of that (as has Sun, how effectively is another question...). It's still, imho, basically relatively slow and overweight compared to something like C or C++, like any other interpreted language. To use dotnet, a user has to have the large library of stuff installed on their machine, just like you have to have that large library of Java stuff somewhere on your machine to run Java applets and such.





6) C#.net - This would be C# written to make a web server "page." "ASP" is the Microsoft technology that generally allows you to write code on a web server to do things like connect to a database when the user visits the website, put up a registration form and insert the user's data into the database, etc. ASP.net is the dotnet version of this, and similarly it uses C# and the dotnet architecture.





You asked about any others and I'd add one note on C++: the newer versions have the C++ Standard Library, which was a long time in development, came quite a while after the C++ language itself and is worthy of just as much study as C++ itself. It provides canned functionality for a huge number of data types a programmer generally needs.
Reply:I only have decent experience with C and C++. The main thing that all these languages have in common are their common syntax; along with all descendants of the ALGOL family. It should look familiar to you:





function(arg1, arg2) {


    statement;


    statement;


}





C# (pronounced "See sharp") is more similar to Java than to C or C++ (aside from, again, the syntax). It runs on the Microsoft .NET framework. But that's about the extent of what I know.

marigold

No comments:

Post a Comment