Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in C only
Search
Advanced Search
Forums
BYTES
Product Launch
Updates
Developer Toolkit
Today's Posts
Member List
Calendar
Home
Forum
Topic
C
#define f(g,g2) g##g2
Collapse
This topic is closed.
X
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
magicman
#1
#define f(g,g2) g##g2
Jun 27 '08, 07:35 PM
What does it mean?
what will f(12,8) output?
thanks
Bartc
#2
Jun 27 '08, 07:35 PM
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
Post
Cancel
Keith Thompson
#3
Jun 27 '08, 07:35 PM
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
Post
Cancel
Jim Langston
#4
Jun 27 '08, 07:35 PM
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
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment