#define f(g,g2) g##g2

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • magicman

    #define f(g,g2) g##g2

    What does it mean?


    what will f(12,8) output?


    thanks
  • Bartc

    #2
    Re: #define f(g,g2) g##g2


    "magicman" <ironsel2000@gm ail.comwrote in message
    news:6fa7d2bc-8e8c-4e23-809e-30d677e699da@e3 9g2000hsf.googl egroups.com...

    [#define f(g,g2) g##g2]
    What does it mean?
    >
    >
    what will f(12,8) output?
    f(12,8) won't output anything. It gets translated to 128, which won't do
    much by itself.

    Have you thought of just trying it?

    --
    Bartc


    Comment

    • Keith Thompson

      #3
      Re: #define f(g,g2) g##g2

      magicman <ironsel2000@gm ail.comwrites:
      What does it mean?
      Do you have a C textbook? What does it say?
      what will f(12,8) output?
      What happened when you tried it?

      --
      Keith Thompson (The_Other_Keit h) <kst-u@mib.org>
      Nokia
      "We must do something. This is something. Therefore, we must do this."
      -- Antony Jay and Jonathan Lynn, "Yes Minister"

      Comment

      • Jim Langston

        #4
        Re: #define f(g,g2) g##g2

        magicman wrote:
        What does it mean?
        >
        >
        what will f(12,8) output?
        >
        >
        thanks
        ## is concatentate. Check your documentation.

        f(x, y)
        would become
        xy


        --
        Jim Langston
        tazmaster@rocke tmail.com


        Comment

        Working...