G
George2
Hello everyone,
I am surprised to see that the value of sign ' is the same as \'. So,
there is no need to add sign \ before sign '? In my past knowledge of
sign ', we always need to add sign \ before sign '. Any comments?
Here is my simple program to test.
thanks in advance,
George
I am surprised to see that the value of sign ' is the same as \'. So,
there is no need to add sign \ before sign '? In my past knowledge of
sign ', we always need to add sign \ before sign '. Any comments?
Here is my simple program to test.
Code:
#include <string.h>
int main (int argc, char** argv)
{
char* p1 = "Hello \'World\'";
char* p2 = "Hello 'World'";
int result = 0;
result = strcmp(p1, p2);
return 0;
}
thanks in advance,
George