Questions tagged [operators]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
16 views

Is there an operator for raising in a power in C?

In PSET4 Edges Filter problem you are supposed to calculate Gx ^ 2. But the operator ^ in C does not seem to mean raising in a power. For Gx = -9 it returns Gx ^ 2 = -11 and so on. Turned out ^ is XOR ...
1
vote
1answer
335 views

pset2 Caesar - How to properly implement modulus operator

I understand the necessity of using the modulus operator to compensate for plaintext characters that would surpass Z or z respectively, but I cannot seem to wrap my head around its particular syntax. ...
0
votes
1answer
31 views

Multiplication function error?

I'm getting an error for the value of c when I test this code... when I input '2.10' as the x value, c= x*100 gives me a value of 209?? For other values it seems to work so far, weird. I'm new to ...
0
votes
1answer
212 views

De-referencing an array of pointers to structures

Drowning in trying to understand how to dereference pointers in a linked list here... Let's say I have a simple struct, called entry, which has char * name and int ID entry* next fields. If I know I'...