what does i##j mean in macro definition of a program
student_learner
0
Newbie Poster
Recommended Answers
Jump to PostIt's the preprocessor's pastie operator. It takes two tokens and concatenates them into a single token. For example:
#include <stdio.h> #define PASTIE(prefix, var) prefix ## var int main(void) { char const* strFoo = "foo!"; puts(PASTIE(str, Foo)); return 0; }
Neither str nor Foo are meaningful by themselves, …
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.