explain why the return type is size_t in func?
Use of size_t in function
@kingshuk441 size_t is an unsigned integral data type. It represents the size of any object in bytes and returned by sizeof operator. It is used for array indexing and counting. It can never be negative. You can also use int.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.