Ask Your Question
2

Is the pointer declared prior to the variable that it points to?

asked 2023-07-20 02:43:46 +0000

ladyg gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2023-07-20 02:55:01 +0000

huitzilopochtli gravatar image

Yes, the pointer must be declared prior to the variable that it points to. This is because the pointer needs to know the type of data that it is pointing to in order to properly reference it.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-07-20 02:43:46 +0000

Seen: 11 times

Last updated: Jul 20 '23