I'm trying to write a simple c program, nothing fancy, but whenever I declare an array of char, I try to use scanf to get text from the user but then it gives me the access violation error - no 'execute/read' permission. The same thing happens when I try to declare a char * and use it. It also randomly occurs when I do a print of from an array of char which I filled using the getchar() function. Why am I getting this error from something so simple?
View all questions in Keil forum