On 5 October 2012 22:00, Electron wrote: > >It also appears that in C++, the most common preference is type A > (asterisk > >close to the type). Boost (peer reviewed C++ library) uses that form, an= d > >if that's good enough for them, it's good enough for me. > > Yes, if the focus is the type, then the type is certainly "int*". > > The focus may be anything else one wishes, of course, but if I declare > multiple > variables at once by first saying what type they are, and then the names > of the > variables, like: > > int* a, b, c, d; > > all of them oughta be of type "int*". > I am not arguing here, just saying that the type is the pointer or '*' in C. The mark 'int' is needed by the pointer arithmetic and to casting the memory selected by the pointer. That's why it makes perfect sense to me to use the version B 'int *a, *b, *c;' notation. By the way, we always can create our own type, so maybe what OP is looking for is something like: typedef int* pInt; pInt d,e,f; Tamas > > Diclaimer: I have designed two programming languages (for my own use) and > wrote > optimizing compilers for them (real languages, not toys), so my opinion > may be biased. > > Cheers, > Mario > > -- > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist > --=20 int main() { char *a,*s,*q; printf(s=3D"int main() { char *a,*s,*q; printf(s=3D%s%s%s, q=3D%s%s%s%s,s,q,q,a=3D%s%s%s%s,q,q,q,a,a,q); }", q=3D"\"",s,q,q,a=3D"\\",q,q,q,a,a,q); } --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .