The problem is that y is not initialized to anything, it can point absolutely anywhere (probably somewhere outside the memory segment appointed to your program). This means that you are putting stuff into memory that you have not allocated, and possibly memory that doesn't exist. This is most...