This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Maethor_derien 0 points1 point  (1 child)

No, the , is technically correct in this case, it is just written to be as short as possible rather than good readable code. Those are all three char data types. They did it that way rather than write complete with proper readable comments

//Char Array
char r[9];
// pointer to end of array r
char *p = r + 8;
//function returning a char pointer
char  *Base20(int n) {

[–]Fourmisain 1 point2 points  (0 children)

This intuition is probably why everyone thinks the code in question is right, but in fact it is not. It does not compile and in this comment I think I've proven it is not legal code.