is their any body tell me the Difference between int* a; and int *a; ?
sharensla 3 Newbie Poster
Recommended Answers
Jump to PostI don't believe there is a difference. I think it's just a matter of coding standards.
Jump to Post>is their any body tell me the Difference between int* a; and int *a; ?
From a language standpoint there's no difference. However, placing the asterisk by the variable makes more sense when you have multiple variables in a declaration:int *p, *q;
The reason this makes …
All 8 Replies
Dani 4,675 The Queen of DaniWeb Administrator Featured Poster Premium Member
programmersbook 17 Junior Poster
William Hemsworth 1,339 Posting Virtuoso
Narue 5,707 Bad Cop Team Colleague
sharensla 3 Newbie Poster
gdharani7686 0 Newbie Poster
corby -4 Junior Poster
Fbody commented: If you're going to post in a dead thread, at least post something correct. +0
Fbody 682 Posting Maven Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.