Explorar o código

some test using nullptr vs null.

wes %!s(int64=4) %!d(string=hai) anos
pai
achega
074ef26a82
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  1. 6 0
      snippets/notnull.cpp

+ 6 - 0
snippets/notnull.cpp

@@ -0,0 +1,6 @@
+#include <iostream>
+
+int main(){
+    if(!NULL){printf("look a potato"); }
+    if(!nullptr){printf("look a tomato"); }
+}