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; }
1 2 3
cc1plus: warnings being treated as errors In function 'int main()': Line 4: warning: NULL used in arithmetic