
RobotC 4.27 Pointer bad syntax? or bug?
Hello, came across something today, was curious if I was just doing something stupid or if there is a bug here. (On RobotC 4.27 for VEX)
This code doesn't compile with the following error:
Shouldn't foo return a pointer that I could then dereference?
The following code works:
Is this not allowed in C? Is there something silly I'm missing? Is this a bug in RobotC? Curious what others think. The hope is to be able to return a pointer of an arbitrary type in one line.