size_t tag

2 questions


2 answers
64 views
0
What type is size_t exactly?

I know that sizeof() returnsWhat else is there?Is it a data type?for(i = 0; i < some_size; i++)When writing these repetitive statements, i is int? size_t? Which one should I write?

2 years ago

1 answers
27 views
0
unsigned int and size_t

The string-related function parameters in the C/C++ STL are:You used size_t instead of int/ unsigned intWhy is that? Is there anything good about it?

2 years ago

© 2024 OneMinuteCode. All rights reserved.