In object type macro it is possible below,
#define str "this is a string"
I want to know is it possible to use this type of string literal in function type macro like following,
#define mkstr(a) #a
#define str(s1,s2) mkstr(s1 ## s2 ## "extra")
I run this and got error and now i want to know is there any way to use constants in replacement sequence of a function type macro???
Yes. Just place the strings together: the C language accepts that as string constant concatenation.