5
Contributors
7
Replies
8
Views
11 Years
Discussion Span
Last Post by dwks
0

Aha... implicit function declarations ! Rather weak thought, but it feels the same as saying something that can not be done in c but in c++, both are complete turing machines and can as such do everything a turing machine can (I heard somewhere that the template language in c++ are also turing complete, interesting side note).

int main(...)
{
  function( 10 ); 
}

...

int function( 10 )
{
}
0

>Some thingthat we can do in C and Not in C++
Compile on certain embedded systems. :)

Yea, but those embdded systems are not ansi C compliant either. There is a different C standard for embedded systems, such is a subset of standard C and embedded systems don't have to use that standard either. Many embedded systems don't support C at all.

0

C99:

int main(void) {
    _Bool b;
    return 0;
}

C89:

int main(void) {
    double x = 1 //**/ 10;
    return 0;
}

For the second program, C++/C99 sees the double line as

double x = 1 [i]//**/ 10;[/i]

whereas C89 sees it as

double x = 1 /[i]/**/[/i] 10;
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.