while(foo) vs while(foo != NULL)

Kann mir jemand erklären, wie while(foo) vs while(foo != NULL) sind äquivalent? Auch:

while(!foo) vs while(foo == NULL)

Weiß ich das ! ist es nicht, aber das ist alles, was ich weiß.

InformationsquelleAutor MortalMan | 2015-03-30
Schreibe einen Kommentar