Is it "long long int" = "long int long" = "int long"?

Asked 2 years ago, Updated 2 years ago, 81 views

Both can be compiled.

Can I change the order like int long , long int, and long int?

If the top two are the same, is the pointer type the same?

c++ syntax long-initeger

2022-09-22 22:25

1 Answers

C++ Standard (7.1.6.2 Simple type specifiers)

If multiple simple type designators are used, the result is independent of the order.

That's what it says. That is, int long = long int = long int If you want

It's also possible to share.


2022-09-22 22:25

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.