When I have to use size_t, can I use such expressions?
/* size_ is size_t type and has some value*/
and I want to change the value like
++size_;
or --size_;
And I also want to make array using size_t like
array[size_]=something;
Are they valid?
Yes, you can use all of them because
size_t
is an unsigned integer type.Example: