length of a char array in c
char chararray[10];
size_t len = strlen(chararray);
length of a char array in c
char chararray[10];
size_t len = strlen(chararray);
how to find the size of a character array in c++
Instead of sizeof() for finding the length of strings or character
arrays, just use strlen(string_name) with the header file
#include <cstring>
it's easier.
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us