Click here to Skip to main content
15,889,096 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: C declarations are half backward Pin
Mike Winiberg30-Nov-20 4:33
professionalMike Winiberg30-Nov-20 4:33 
GeneralRe: C declarations are half backward Pin
W Balboos, GHB30-Nov-20 5:20
W Balboos, GHB30-Nov-20 5:20 
GeneralRe: C declarations are half backward Pin
Joop Eggen29-Nov-20 23:25
Joop Eggen29-Nov-20 23:25 
GeneralRe: C declarations are half backward Pin
Rusty Bullet30-Nov-20 3:52
Rusty Bullet30-Nov-20 3:52 
GeneralRe: C declarations are half backward Pin
honey the codewitch30-Nov-20 3:55
mvahoney the codewitch30-Nov-20 3:55 
GeneralRe: C declarations are half backward Pin
Kirk 1038982130-Nov-20 4:18
Kirk 1038982130-Nov-20 4:18 
GeneralRe: C declarations are half backward Pin
honey the codewitch30-Nov-20 4:26
mvahoney the codewitch30-Nov-20 4:26 
GeneralRe: C declarations are half backward Pin
Kirk 1038982130-Nov-20 4:37
Kirk 1038982130-Nov-20 4:37 
Okay, I apologize.

Now, consider this, how do I declare 3-5 arrays of different sizes?

char a[2],b[5],c[6],d[7];
char [2]a, ...

char[2] a;
char[5] b;
char...

also, neat trick, 2[c] == c[2];

// because ANSI declared n[c] == *(c+n), and therefore c[n] == *(n+c)

I think I would be confused if it was any other way than it is now.

The cool thing is you could use the preprocessor to make it work like you want (and be threatened by every living programmer for HORRIBLE form, LOL). [I used to use the preprocessor... A Lot... LOL]

GeneralRe: C declarations are half backward Pin
honey the codewitch30-Nov-20 4:46
mvahoney the codewitch30-Nov-20 4:46 
GeneralRe: C declarations are half backward Pin
Kirk 1038982130-Nov-20 6:37
Kirk 1038982130-Nov-20 6:37 
GeneralRe: C declarations are half backward Pin
honey the codewitch30-Nov-20 6:39
mvahoney the codewitch30-Nov-20 6:39 
GeneralRe: C declarations are half backward Pin
BernardIE531730-Nov-20 5:50
BernardIE531730-Nov-20 5:50 
GeneralRe: C declarations are half backward Pin
honey the codewitch30-Nov-20 5:51
mvahoney the codewitch30-Nov-20 5:51 
GeneralRe: C declarations are half backward Pin
BernardIE531730-Nov-20 6:02
BernardIE531730-Nov-20 6:02 
GeneralRe: C declarations are half backward Pin
honey the codewitch30-Nov-20 6:04
mvahoney the codewitch30-Nov-20 6:04 
GeneralRe: C declarations are half backward Pin
BernardIE531730-Nov-20 6:22
BernardIE531730-Nov-20 6:22 
GeneralRe: C declarations are half backward Pin
honey the codewitch30-Nov-20 6:24
mvahoney the codewitch30-Nov-20 6:24 
GeneralRe: C declarations are half backward Pin
BernardIE531730-Nov-20 8:38
BernardIE531730-Nov-20 8:38 
GeneralRe: C declarations are half backward Pin
Stuart Dootson30-Nov-20 5:53
professionalStuart Dootson30-Nov-20 5:53 
GeneralRe: C declarations are half backward Pin
Stuart Dootson30-Nov-20 5:52
professionalStuart Dootson30-Nov-20 5:52 
GeneralRe: C declarations are half backward Pin
honey the codewitch30-Nov-20 5:54
mvahoney the codewitch30-Nov-20 5:54 
GeneralRe: C declarations are half backward Pin
Member 1330167930-Nov-20 8:18
Member 1330167930-Nov-20 8:18 
GeneralRe: C declarations are half backward Pin
honey the codewitch30-Nov-20 8:26
mvahoney the codewitch30-Nov-20 8:26 
GeneralRe: C declarations are half backward Pin
Member 1330167930-Nov-20 8:49
Member 1330167930-Nov-20 8:49 
GeneralRe: C declarations are half backward Pin
harold aptroot30-Nov-20 9:50
harold aptroot30-Nov-20 9:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.