[ create a new paste ] login | about

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

C++, pasted on Aug 23:
1
2
3
4
5
6
7
#include<iostream.h>
int main(){
char str[]="ayush";
for(int i=0;str[i]!=NULL;++i)
cout<<str[i];
return 0;
}


Output:
1
2
3
cc1plus: warnings being treated as errors
In function 'int main()':
Line 4: warning: NULL used in arithmetic


Create a new paste based on this one


Comments: