Edit: I had used $$ instead of && as an AND operator. The person below pointed that out to me. Removing the OG question because I had posted my code in it.

1 Answer 1


Haven't seen the $$ operator before. Maybe you meant &&, which is logical AND.

  • Oh crap. I am idiot. Thanks a lot. I used & for the third if condition but used $ for the first two. Thats why I was only getting 2 errors. How come I didn't see that? Btw what is the $ operator used for? I think I have used it before. Feb 20, 2017 at 15:30
  • Oh, BTW, ^ operator is not power, but bitwise XOR. 10 ^ 14 is 4
    – Blauelf
    Feb 20, 2017 at 15:32
  • Oh ok. I am really screwing up. How do I write the power? Thanks a lot. Feb 20, 2017 at 15:35
  • There is no power operator. There is a power function for floating point, pow in math.h.
    – Blauelf
    Feb 20, 2017 at 15:48

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .