[ create a new paste ] login | about

Link: http://codepad.org/DC5o63rT    [ raw code | output | fork ]

C++, pasted on Mar 27:
1
2
3
4
5
6
7
8
9
10
#include <iostream>
using namespace std;

int main () {

cout << NULL <<endl ;
cout << (NULL == 0)<<endl;


}


Output:
1
2
3
4
cc1plus: warnings being treated as errors
In function 'int main()':
Line 6: warning: passing NULL to non-pointer argument 1 of 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char, _Traits = std::char_traits<char>]'
Line 7: warning: NULL used in arithmetic


Create a new paste based on this one


Comments: