#include
#include
#include
using namespace std;
int main()
{
char ca[] = {'c','+','+'};
cout<<strlen(ca)<<endl;
for(int i=0; i<strlen(ca); i++)
cout<<ca[i]<<endl;
system("pause");
return 0;
}
为什么长度不是3呢,在VC++6.0中输出长度为7,而在VS2012中输出长度为11?求解释的