S
Servé Lau
Consider the following code:
#define MYMACRO "http//www.bla.com"
When I use it like func(MYMACRO), I get the error "incomplete string
literal".
First, is the compiler correct?
Second, is it ok if I change it to this? (it does compile now)
#define MYMACRO "http\/\/www.bla.com"
In other words, can I escape the slash?
#define MYMACRO "http//www.bla.com"
When I use it like func(MYMACRO), I get the error "incomplete string
literal".
First, is the compiler correct?
Second, is it ok if I change it to this? (it does compile now)
#define MYMACRO "http\/\/www.bla.com"
In other words, can I escape the slash?