J
J
Jek2020-10-12 08:18:22
C++ / C#
Jek, 2020-10-12 08:18:22

What is a space after * in C language?

example
int main (int argc, char * argv[])
is it also a pointer or something else? and what's the catch if the pointer?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Daniil Demidko, 2020-10-12
@jotrib

For good, it's better to write so that * is before the name, and not after the type. Because no matter how you set it, it will still apply to only one variable after the type, but not to the next.

R
Ronald McDonald, 2020-10-12
@Zoominger

The gap does not give anything that it is, that it is not.

C
CityCat4, 2020-10-12
@CityCat4

Nothing. For readability of the code, * is usually placed before the name of the variable to which it refers - but this is just for the person. The compiler will cut the space anyway and match it with the name of the variable that follows it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question