[ create a new paste ] login | about

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

C++, pasted on Aug 25:
1
2
3
4
5
6
7
8
#include<iostream.h>
int main(){
cout << "NULL type is " << typeid(NULL).name() << endl;
char str[]="";
char* str2=NULL;
cout<<sizeof(str)<<"\n"<<sizeof(str2);
return 0;
}


Output:
1
2
3
NULL type is i
1
4


Create a new paste based on this one


Comments: