Home > Back-end > Strlen () and sizeof () return values size_t is unsigned long integer?
Strlen () and sizeof () return values size_t is unsigned long integer?
Time:12-24
I check the online information is said unsigned integer, using GCC compiler error returned is a long unsigned int, so grammar is changed or has always been an unsigned long integer? Running environment is ubuntu20.04, GCC 5.4.0
CodePudding user response:
Size_t is unsigned int
CodePudding user response:
In the IDE, the right mouse button point don't understand the symbol strlen, sizeof, size_t, choose to define in the pop-up menu,
CodePudding user response:
IDE can be used under Ubuntu VSCode CodeBlock, Idea,...
CodePudding user response:
According to the compiler to set, we can look it up in the environment defined size_t what type, search on the net, look at this size_t defined in the header file ~