+ 2

Could someone help?

when declaring pointers,whats the difference if we say: float*ptr or float(*ptr) ????

10th Jan 2018, 8:49 PM
RiGeL
RiGeL - avatar
5 Respuestas
+ 2
In this case there is no difference, but when dealing with a function pointer there is. int* x(int) is a function declaration int(*x)(int) is a function pointer It's about the operator precedence, just wanted to put this out here.
10th Jan 2018, 9:38 PM
Dennis
Dennis - avatar
+ 8
if im not mistaken, there is no difference
10th Jan 2018, 9:22 PM
Botol
Botol - avatar
+ 2
@Dennis thank you alot
10th Jan 2018, 9:39 PM
RiGeL
RiGeL - avatar
+ 1
Thank you alot
10th Jan 2018, 9:27 PM
RiGeL
RiGeL - avatar
0
no diff.
11th Jan 2018, 4:48 AM
$¢𝐎₹𝔭!𝐨𝓝
$¢𝐎₹𝔭!𝐨𝓝 - avatar