C语言Sizeof()运算符与strlen()函数复习

// Test_C.cpp : Defines the entry point for the console application.
//
#include"stdafx.h"
#include
using namespace std;
//strlen()
//sizeof()运算符
short *ar[10][10];
void main()
{
	cout<<sizeof(ar)<<endl; //400
}
//void fun(char *str)
/*void fun(char str[])
{
	cout<
/*void main()
{
	char *str = "Hello";
	cout<
/*void main()
{   
	static char str[10];//static变量,属于整个程序
	
	for(int i=0;i<5;++i)
	{
		str[i] = 'a' + i;//a b c d e
	}
	cout<
/*void main()
{
	int val = "01234567"[3];
	/*int val = '\0';*/
	/*char  *str = "01234567";
	int val = str[3];//str[3] = *(str+3);
}
*/
/*void main()
{
	char str[10] = {'h','0','\0','l','l','o'};
	cout<
/*void main()
{
	char str[10] = {'h','0',0,'l','l','o'};
	cout<
/*void main()
{
	char str[10] = {'h','0','l','l','o'};
	cout<
/*void main()
{
	char str[10] = {'h','l','l','l','o'};
	cout<

/*void main()
{
	char str[10] = {'h','l','l','l','o'};
	cout<
 
/*void main()
{
	char str[] = {'h','l','l','l','o'};
	cout<
/*void main()
{
	char str[10] = {'h','l','l','l','o'};
	cout<
/*void main()
{
	char str[10] = "Hello";
	cout<
/*void main()
{
	char str[] = "Hello";
	cout<

你可能感兴趣的:(sizeof)