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


Groups > comp.lang.c > #149866

Re: what does # mean?

From Keith Thompson <Keith.S.Thompson+u@gmail.com>
Newsgroups comp.lang.c
Subject Re: what does # mean?
Date 2020-02-08 13:38 -0800
Organization None to speak of
Message-ID <87eev4220a.fsf@nosuchdomain.example.com> (permalink)
References <r1l2nb$n2s$1@dont-email.me> <6dcd71aa-6b41-4193-8d53-813dbc198686@googlegroups.com> <jcD%F.118259$_R3.107762@fx36.iad>

Show all headers | View raw


scott@slp53.sl.home (Scott Lurndal) writes:
> James Kuyper <jameskuyper@alumni.caltech.edu> writes:
>>On Friday, February 7, 2020 at 8:26:13 PM UTC-5, T wrote:
>>> Hi All
>>> 
>>> what does the "#" in
>>> 
>>>       #define GDK_SELECTION_SECONDARY  GDK_MAKE_ATOM (2)
>>> 
>>> mean?
>>> 
>>> And is "define" what others call a constant?
>>
>>The # does not mean anything on it's own, 
>
> Although to be strictly pedantic, in the days of early
> C compilers, the C pre-processor would only be run if
> the first byte of the source file was '#'.    One often
> saw source files where the first line was a naked octothorpe.

And a # on a line by itself is a "null directive".  It has no effect.

-- 
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
Working, but not speaking, for Philips Healthcare
void Void(void) { Void(); } /* The recursive call of the void */

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


Thread

what does # mean? T <T@invalid.invalid> - 2020-02-07 17:26 -0800
  Re: what does # mean? luser droog <luser.droog@gmail.com> - 2020-02-07 17:51 -0800
    Re: what does # mean? T <T@invalid.invalid> - 2020-02-07 18:00 -0800
  Re: what does # mean? T <T@invalid.invalid> - 2020-02-07 18:00 -0800
  Re: what does # mean? James Kuyper <jameskuyper@alumni.caltech.edu> - 2020-02-07 20:04 -0800
    Re: what does # mean? T <T@invalid.invalid> - 2020-02-08 00:10 -0800
    Re: what does # mean? scott@slp53.sl.home (Scott Lurndal) - 2020-02-08 18:35 +0000
      Re: what does # mean? Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2020-02-08 13:38 -0800

csiph-web