Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #111873

Re: should c be a subset of c++?

From "Pascal J. Bourguignon" <pjb@informatimago.com>
Newsgroups comp.lang.c
Subject Re: should c be a subset of c++?
Date 2017-06-09 02:55 +0200
Organization Informatimago
Message-ID <m2poee7zef.fsf@despina.home> (permalink)
References <32c7b61e-1216-4b5d-8a4d-4c56af7cecf3@googlegroups.com> <d5439a2a-1230-4e26-9251-3f3b6527684b@googlegroups.com> <20170609020648.c723063a79271e3cd57e365f@gmail.com>

Show all headers | View raw


GOTHIER Nathan <nathan.gothier@gmail.com> writes:

> Actually you lost all your credibility pretending C programs are obsolete and
> can be built with C++ compilers as if C++ was an upper layer of C.


    #include <stdio.h>
    int main(){
        int C=88;
        printf("C++ = %d\n",C++);
        printf("C   = %d\n",C);
        return 0;
    }

prints:

    C++ = 88
    C   = 89

which shows that C is clearly superior to C++…


-- 
__Pascal J. Bourguignon
http://www.informatimago.com

Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Re: should c be a subset of c++? brook.monroe@gmail.com - 2017-06-08 13:19 -0700
  Re: should c be a subset of c++? supercat@casperkitty.com - 2017-06-08 14:06 -0700
  Re: should c be a subset of c++? Melzzzzz <Melzzzzz@zzzzz.com> - 2017-06-08 21:40 +0000
  Re: should c be a subset of c++? jacobnavia <jacob@jacob.remcomp.fr> - 2017-06-09 00:04 +0200
    Re: should c be a subset of c++? Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2017-06-08 18:12 -0400
      Re: should c be a subset of c++? jacobnavia <jacob@jacob.remcomp.fr> - 2017-06-09 00:38 +0200
        Re: should c be a subset of c++? Ben Bacarisse <ben.usenet@bsb.me.uk> - 2017-06-09 01:19 +0100
    Re: should c be a subset of c++? Ian Collins <ian-news@hotmail.com> - 2017-06-09 12:06 +1200
    Re: should c be a subset of c++? Ben Bacarisse <ben.usenet@bsb.me.uk> - 2017-06-09 01:15 +0100
  Re: should c be a subset of c++? GOTHIER Nathan <nathan.gothier@gmail.com> - 2017-06-09 02:06 +0200
    Re: should c be a subset of c++? "Pascal J. Bourguignon" <pjb@informatimago.com> - 2017-06-09 02:55 +0200
      Re: should c be a subset of c++? GOTHIER Nathan <nathan.gothier@gmail.com> - 2017-06-09 09:58 +0200
    Re: should c be a subset of c++? supercat@casperkitty.com - 2017-06-09 09:29 -0700
      Re: should c be a subset of c++? GOTHIER Nathan <nathan.gothier@gmail.com> - 2017-06-09 21:57 +0200

csiph-web