about a simple mikroC instruction

Discussion in 'Embedded Systems and Microcontrollers' started by saman1969, Nov 27, 2012.

  1. saman1969

    Thread Starter New Member

    Nov 2, 2012
    15
    0
    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
     
  2. ErnieM

    AAC Fanatic!

    Apr 24, 2011
    7,395
    1,607
    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?
     
    saman1969 likes this.
  3. THE_RB

    AAC Fanatic!

    Feb 11, 2008
    5,435
    1,305
    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". :)
     
    saman1969 likes this.
Loading...