⇤ ← Revision 1 as of 2013-10-17 19:09:34
Size: 271
Comment:
|
← Revision 2 as of 2021-08-18 23:20:17 ⇥
Size: 343
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 1: | Line 1: |
## page was renamed from AdvancedNetworkSecurity/BufferOverFlowExample |
BufferOverFlowExample
Consider the program below:
#include <stdio.h> #include <string.h> int main() { char lstring[10]; printf("Enter a long string: "); scanf("%s", lstring); printf("You entered: %s\n",lstring); return 0; }