Explorar el Código

some test using nullptr vs null.

wes hace 4 años
padre
commit
074ef26a82
Se han modificado 1 ficheros con 6 adiciones y 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"); }
+}