Stop being the product.
Become the owner.
or
sign uplog in

Why learn pointers in C if I can just return values…

Why learn pointers in C if I can just return values ​​normally?

I don't really understand the point of pointers right now. If my function can just return a value directly, why would I complicate things with 'int \*ptr = &x'?

I'm new to C, and every time I read about pointers, I get the impression that it's just a complicated way to do something simple. Is there a real case where I'm forced to use them?
#programming #technology #dev
source
earnings
4,000 mlx total
$0  total
engagement
5 views
0 reactions

0 comments