I am a new learner of C language. I have used Turbo C for compile my program. But sometimes it took my laptop to restart when I go to run some of programs. To run Maximum programs have not any problem to my laptop. But some easy and short program took restart my laptop every time when I go to run that. I have very little knowledge about "C" language. I am a new learner. So please give me a solution for this problem. It will be very helpful for me to learn C language quickly.
Maybe you have infinite loops or bad logic in your program which makes the laptop to overheat and restart. Have you observed cpu, memory usage while executing the "bad" programs?
Thank you so much. It have not any infinite loop on those program. But I am confused about bad logic. How may I check if there were any bad logic. I also observed my cpu & found overheat while it takes restart.
It does sound like you have a nested infinite loop if you cannot find a main infinite loop. If I were you I'd redesign your code and not use loops until you are more efficient with coding