#include<iostream>
#include<string.h>
using namespace std;
int main() {
char b[] = {'a','b',' ','c'};
cout << sizeof(b) << endl;
cout << strlen(b) << endl;
return 0;
}
Why the above output is 4,6 isnt that 4,4 is the correct answer?