Answers for "null c++"

C++
1

null c++

//NULL is equal to 0
#include <iostream>
using namespace std;
int main(){
  int x = NULL;
  int y = 0;
  cout << y << endl; // Outputs 0
  cout << x << endl; // Outputs 0
  return 0;
}
Posted by: Guest on December-28-2020

Browse Popular Code Answers by Language