void fun(){int i=0;while(true) i++;}overflow and program will end... or user will kill the program after waiting for a bit.--------------------------------void fun(){int *i=0;while(true) *(i++)=i;}same as above plus there is a chance that program corrupts some critical data and crashes