IN C-language:- #include<stdio.h> int main() { while(1) { printf("hai\n"); } } output: hai hai hai . . . like this upto stack overflow
IN EMBEDDED c:- #include<reg51.h> sbit led=P1^0; int main() { led=0; while(1) { led=~led; } }
at what time stack overflow takes place in microcontroller can any one help me
hi kumin. you get stack overflow when you use the stack. simple loop wont do it. good way dr ghela told me was main() { main(); }. he sais code goes *** up
What is the *** up, when do they go pear shaped also?