My code compiles an error, it says:
main.c(18) E4062C: syntax error near `='
main.c(24) E4062C: syntax error near `register'
Can someone see what I am doin wrong here?
My code compiles an error, it says:
main.c(18) E4062C: syntax error near `='
main.c(24) E4062C: syntax error near `register'
Can someone see what I am doin wrong here?
"register" is a keyword in C, so you can't use that as a variable or function name.
--
Mats
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
What other options are possible for me to use then?
Well, call the variable something else than exactly "register" would be an obvious one. Some choices I could think og: "reg", "regvalue", "regaddr", "Register", "REGISTER".
It's the same as you can't call a variable "for", "while", "do", "if", "else", etc, etc.
--
Mats
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
Well thank you very much! I will try your options