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
		
- 
				
				 jonjo9409yI had to check b lol have never put it the opposite way round before 😂 learn something new every day. jonjo9409yI had to check b lol have never put it the opposite way round before 😂 learn something new every day.
- 
				
				 elazar10179yActually 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 elazar10179yActually 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
- 
						
							 xjose97x20Just saw a variable in C named like this: long time_ago; //in a galaxy far away I laughed no stop. xjose97x20Just 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 ... Unskipp24So this happened last night... Gf: my favorite bra is not fitting me anymore Me: get a new one ? Gf: but it ...
- 
						
							 sam966911 sam966911 Hats off to this lady .... I would have just flipped the machine Hats 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++