#include "stdafx.h"
#include<iostream>
using namespace std;
void Func(char str_arg[100])
{
cout<<sizeof(str_arg)<<endl;//4,退化为指针
cout<<strlen(str_arg)<<endl;//5,实际字符串的长度
}
int main(void)
{
char str[]="Hello";
cout<<sizeof(str)<<endl;//6,包含'\0'
cout<<strlen(str)<<endl;//5,不包含'\0'
char *p = str;
cout<<sizeof(p)<<endl; //4,指针为4字节
cout<<strlen(p)<<endl;//5,字符串长度
Func(str);
}