I know that !!
(a.k.a. double bang) is used in C++ as a trick to convert to bool(like this)
But I was surfing on Politecnico of Milan and I've found this code:
int main() {
char *p, s[6] = "DBPAY";
int a = 3;
p = s;
printf("%c", *(p++));
f( &p, a );
printf("%c !!", *p);
return 0;
}
void f(char ** c, int x) {
void *z = &z;
if( strlen(*c) < 2 )
return;
printf( "%c", (**c)+x );
(*c)++;
f( c, --x );
return;
}
It's a simple program about pointer arithmetic but I don't know what means:
printf("%c !!", *p);
Someone could explain what it does?