- Is it better to use pointers or global variables?
Are apples or beach balls better? There is no real comparison. Pointers can be local or global. Global variables can be pointers or non-pointers.
- Is my
Quote
servol.write(vall * ((float)perl / 100) );
valid?
Rather than casting an int to a float, it would be cleaner to simply divide by a float (100.0) rather than an int (100).