#include <stdio.h>
int main()
{
    int cookie;
    char buf[16];
    printf("&buf: %p, &cookie: %p \n", buf, &cookie);
    gets(buf);
    if(cookie==0x000D0A00)
    {
        printf("You win ! \n");
    }
}
e có một đoạn code như trên (trích sách taose.pdf của nguyễn thành nam)
Bài này dùng...