about a simple mikroC instruction

Thread Starter

saman1969

Joined Nov 2, 2012
15
my compiler does not recognize the simplest instruction "i++;" and for adding one to variable "i" it needs "i=i+1;" . does my complier any fault or it is a rule in mikroC ?
thanks
 

ErnieM

Joined Apr 24, 2011
8,377
Orly? It works in my version 5.3.

I don't use MikroC but have the download installed, and it understands i++;

You didn't do anything silly like declare i a floating type, did you?
 

THE_RB

Joined Feb 11, 2008
5,438
Agreed. He might have also declared i as constant or something.

It would be helpful to see the actual error message from the compiler, not just a vague statement that the "compiler does not allow it". :)
 
Top