DrBeco
DrBeco

Reputation: 11785

C language evolves

1) What is the newest version of C language? 2) How is GCC complying to it? 3) For an old C programmer, what is the main differences of the new language?

I'm asking this because I learned these days (a new feature) that we can actually attribute values to a struct like:

struct t
{
   int i;
   char c;
} s;
s = (struct t){exponent, coefficient};

So I'm wondering about other things I might be missing when programming...

Thanks, Beco

Upvotes: 6

Views: 352

Answers (3)

Hans Passant
Hans Passant

Reputation: 942109

The next standard is being worked on by the WG 14 group, their home page is here. The "News 2010-12-05" link takes you to a PDF of the current draft, labeled "201x". Paragraphs 6 and 7 highlight changes. Googling "+gcc +c201x" gives reasonable hits, nothing much to nail to a wall. This moves slow as a snail, C99 is not universally implemented yet either.

Upvotes: 1

Sandro Munda
Sandro Munda

Reputation: 41080

The last standard is C99. I don't use this standard because GCC does not yet fully support. (see here)

There is "C1X" but it is much too premature to talk about it.

For the new features in C99, see the following post :

What are the most useful new features in C99?

Upvotes: 4

Vlad
Vlad

Reputation: 35594

The most recent version of C language seems to be C99. Among the numerous changes, the most important IMHO are:

  • restrict pointers
  • variable length arrays
  • built-in complex numbers
  • variable declarations mixed with code
  • C++-style // comments

Here is a bigger list.

Upvotes: 4

Related Questions