Talk:C (programming language): Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Alex Bravo
imported>Robert Tito
Line 31: Line 31:


But it says Linux, Mac OS X and Windows in general, I mean, XP, 2k et al use derivatives of C too. --[[User:Alex Bravo|Rion]] 13:47, 2 March 2007 (CST)
But it says Linux, Mac OS X and Windows in general, I mean, XP, 2k et al use derivatives of C too. --[[User:Alex Bravo|Rion]] 13:47, 2 March 2007 (CST)
FYI, GNOME is an open source project (sourceforge) using GCC 3.2 and higher. The same applies for GIMP. C is indeed a low to high level programming language due to its resemblance to assembler and its bit oriented programming capacities - many have been forgotten by all in one solutions like studio and xcode. [[User:Robert Tito|Robert Tito]] | [[User talk:Robert Tito|Talk]] 14:14, 2 March 2007 (CST)


==Syntax example==
==Syntax example==

Revision as of 14:14, 2 March 2007

hi, it is ritchie and kernigan who developed it, Bjarne Stroustroup did create a subset now called C++. Robert Tito | Talk 11:45, 23 February 2007 (CST)

C++ is not a subset of C. It is (at least mostly) a superset of C89. C99 has new features that are in part taken back from C++ and in part new to C and not (yet) included in C++. Phil Howard 10:48, 24 February 2007 (CST)

Thanks, adding right now.

Is C low-level? AFAIK, it is a mid-level language. --Rion 18:22, 23 February 2007 (CST)

In terms of language feature and design, C could rightly be considered a mid-level language. However (and this is my opinion), it should today be more classified at a lower level, perhaps called "bottom of mid-level or top of low-level". The reason I hold this opinion about C is because more and more of higher level programming that in years (or decades) past might have been done in C are now being done in other languages at a higher level, such as Python. Phil Howard 11:06, 24 February 2007 (CST)

Is it ok, if C will be one of the branches of programming languages? as well as any other progr. lang of course. It will unite every language we can come up with for computers. If you like it, add your name as one of the authors please. Robert Tito | Talk 14:34, 24 February 2007 (CST)

A standard programming language

Could we find a better term than the "is considered a standard programming language" mentioned in the article? Or we need to write an own article what a "standard programming language" is. Except for the fact that C was standardized (which is seemingly not meant as then the "is considered" would be wrong) I think that such a classification is a bit subjective and especially runs the danger of becoming obsolete with time.

There might be also another statement which might be a bit out-dated: "it is the most commonly used programming language for writing system software, though it is also widely used for writing applications". I don't known about system software but is C really still widely used for writing applications? I would have thought it being mostly replaced by OOPL and scripting languages for that by now.

--Markus Baumeister 17:36, 25 February 2007 (CST)

standard?

so far many middleware solutions are build using C, sometimes lending some C++ classing hierarchies. Main reason: it needs being able to talk to EPCDIC-datastructures as well as on the front end to browser based interfases. C is easy to combine with assembler as well as java (and interfases with the majority of the scrintings languages as php/perl etc). contrary to common believe visual studio is not as popular as m$ might want us to believe. Even in redmont for times they used codewarrior in stead of VS to develop new versions of software, specially since the introduction of VS6 and .NET studio. In that period m$-MAC BU developed their solutions solely using codewarrior. Now they cross compile using Xcode as well as GCC. Robert Tito | Talk

GNOME + OSes

Well, most of the GNOME software is written in C. We should maybe note that its derivates are more popular in software writing (C# for Microsoft, ObjC for OS X, C++ for Haiku and so on...) --Rion 07:48, 26 February 2007 (CST)

What's up with the "Vista"? What's the point of inclusion? --Rion 12:57, 2 March 2007 (CST)

if windows is a name, so is vista Robert Tito | Talk 13:29, 2 March 2007 (CST)

But it says Linux, Mac OS X and Windows in general, I mean, XP, 2k et al use derivatives of C too. --Rion 13:47, 2 March 2007 (CST) FYI, GNOME is an open source project (sourceforge) using GCC 3.2 and higher. The same applies for GIMP. C is indeed a low to high level programming language due to its resemblance to assembler and its bit oriented programming capacities - many have been forgotten by all in one solutions like studio and xcode. Robert Tito | Talk 14:14, 2 March 2007 (CST)

Syntax example

Here's my suggestion for a somewhat more complex example in the Syntax section. What do you think about it?

#include <stdio.h>	

int main() {
   int age;
  
   printf("Please enter your age: ");
   scanf("%d", &age);
      if(age < 18) {
        printf("You are not an adult.\n");
      }
      else if(age > 18) {
        printf("You are an adult.\n");
      }
   return 0;
}