A
A
Alexander2020-08-20 10:18:38
C++ / C#
Alexander, 2020-08-20 10:18:38

What's the difference between specifier, modifier, qualifier, identifier, initializer?

I encounter that in any literature the specifier, modifier, qualifier, identifier, declarator, initializer are interpreted differently. In the end, how is it correctly interpreted?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mercury13, 2020-08-24
@Shemapp

Definition specifiers are the words typedef, inline, friend, constexpr, constinit, register, static, thread_local, extern, mutable.
Type specifiers are anything that completely defines the type: starting from int and ending with vector<int>::const_iterator.
Type modifiers are the words short, long, signed, unsigned.
Qualifiers are the words const, volatile.
Access specifiers are the words private, protected, public.
An identifier is the name of an object that obeys certain rules.
The declarator is part of the declaration of a variable or function, and if you don't get your head into the intricacies of C syntax, you don't need to.
The initializer is int i = 1 or int i {1} .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question