Re:C will never stop you from making mistakes
by zzo38computer on Monday August 10, 2020 @04:57PM
(#24113905)
I think the bad part of C is the confusing syntax for types. In a declaration of the initial value, you are assigning the value of "p_dog" and not of "*p_dog". I tend to omit the spaces on both sides of the asterisk, though, and don't declare multiple pointer variables in the same line; I will use separate lines if the type isn't something as simple as "int" or "unsigned char". If I need especially complex types, then I will use typedef.
[ Parent
| on HN ]
There are no comments on this comment yet.