Consider the following code
#include void print(char string[]){ printf(\"%s:%d\\n\",string,sizeof(string)); } int main(){ char string[] =
string is a pointer and its size is 4. You need strlen probably.
string
strlen