Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>;
- /*
- A program végtelen ciklusba kerül, (while (1) miatt)
- majd a helytelen memóriakezelés miatt az operációs rendszer megölte.
- A program, amely túl sokat tudott.
- */
- int main()
- {
- int tomb[10], i;
- for (i=0; i<10; i++)
- tomb[i] = 1;
- i=0;
- while(1) {
- printf("%d. elem: %d",i, tomb[i]);
- i++;
- }
- }
Add Comment
Please, Sign In to add comment