Start New Discussion Reply to this Discussion pointer
are these declaration same?
const char *const s;
char const *const s;
11 Minutes
Discussion Span
10 Months Ago
Last Updated
shanki himanshu
Junior Poster
130 posts since Dec 2010
Reputation Points: 37
Solved Threads: 1
Skill Endorsements: 0
Yes, they're the same.
It only matters whether the const appears before or after the *. If it appears before the * it does not matter whether it appears before or after the typename.
sepp2k
Posting Whiz in Training
244 posts since Jul 2012
Reputation Points: 76
Solved Threads: 45
Skill Endorsements: 8
© 2013 DaniWeb® LLC
Page generated in 0.1171 seconds
using 2.64MB