We're a community of 1.1M IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,080,578 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

pointer

are these declaration same?
const char *const s;
char const *const s;

2
Contributors
1
Reply
11 Minutes
Discussion Span
10 Months Ago
Last Updated
2
Views
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

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
 
© 2013 DaniWeb® LLC
Page generated in 0.1171 seconds using 2.64MB