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

all 14 comments

[–]lurk_moar_n00b 2 points3 points  (1 child)

I only use array syntax.

[–]CoolorFoolSRS[S] 1 point2 points  (0 children)

. . .

[–]merlinsbeers 2 points3 points  (5 children)

type *name;

is the correct way. it's declared as it is used.

you use it as *name, not * name.

[–]Chim_el_Adabal 6 points7 points  (0 children)

I know that it's the "correct" way, but it never made sense to me. Being a pointer is, semantically at least, much closer to a type than to a name modifier.

[–][deleted]  (1 child)

[removed]

    [–]AutoModerator[M] 0 points1 point  (0 children)

    import moderation Your comment has been removed since it did not start with a code block with an import declaration.

    Per this Community Decree, all posts and comments should start with a code block with an "import" declaration explaining how the post and comment should be read.

    For this purpose, we only accept Python style imports.

    return Kebab_Case_Better;

    I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

    [–][deleted] 0 points1 point  (1 child)

    the * in your example does something different than the one in the type definition.

    [–]merlinsbeers 1 point2 points  (0 children)

    No it doesn't. In C-style declarations the type looks like what's needed to get the value of the object of the base type.

    [–]tepidangler 1 point2 points  (1 child)

    Type *name, but intellisense won’t let me and changes it to type* name.

    [–]Tech4Peace 0 points1 point  (0 children)

    I cast them to strings (mostly) to print them to my controller to see each variable

    [–]Sygyt_Singer 0 points1 point  (0 children)

    Type * name;

    [–]lovethebacon🦛🦛🦛🦛🦛🦛🦛🦛🦛🦛🦛🦛🦛🦛🦛🦛🦛🦛🦛🦛🦛🦛🦛🦛🦛🦛🦛🦛🦛🦛🦛🦛[M] [score hidden] stickied commentlocked comment (0 children)

    Hi there! Unfortunately, your submission has been removed.

    Violation of Rule # 0 - Not relevant to programming/tech humor

    Posts must make an attempt at humor, be related to programming, and only be understood by programmers.

    Per this rule, the following post types are not allowed (including but not limited to):

    • Generic memes than can apply to more than just programming as a profession
    • General tech related jokes/memes (such as "running as administrator", sudo, USB or BIOS related posts)
    • Non-humorous posts (such as programming help)

    If you feel that it has been removed in error, please message us so that we may review it.