Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
jonjo9448yI had to check b lol have never put it the opposite way round before 😂 learn something new every day.
-
elazar10308yActually the odd one is "const int*" since it breaks the rule that const is applied to the element immediately to its left. const is a postfix operator
-
@elazar sorry to ruin your world, but that's completely legal and actually quite helpful
Related Rants
-
xjose97x19Just saw a variable in C named like this: long time_ago; //in a galaxy far away I laughed no stop.
-
Unskipp24So this happened last night... Gf: my favorite bra is not fitting me anymore Me: get a new one ? Gf: but it ...
-
sam966911Hats off to this lady .... I would have just flipped the machine
Find the odd one out :
a) const int * foo
b) int const * foo
c) const * int foo
d) int * const foo
undefined
c++