Преглед изворни кода

some test using nullptr vs null.

wes пре 4 година
родитељ
комит
074ef26a82
1 измењених фајлова са 6 додато и 0 уклоњено
  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"); }
+}