#include <iostream>

// naive approach, don't do that
int myarraysize(char s[]) 
{
    return sizeof(s);
}

int main () 
{
    char c[] = "hello";

    std::cout << sizeof(c) << " vs " << myarraysize(c) << std::endl;
    return 0;
}