Answers for "how to get size of char* in c"

C++
2

c print sizeof char

char b = 'b';
printf("the size of b is %d",sizeof(b));
Posted by: Guest on December-25-2020
0

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.
Posted by: Guest on May-02-2020

Browse Popular Code Answers by Language