���졢�빽tricky��

��������ˤ����K&R��5.3���ɤ�Ф狼��פ��Ȥ�����¿ʬ�狼��ʤ�������ɤ�����

P. 100
char s[];
and
char *s;
are equivalent;

�ʤ�ƽ񤤤Ƥ��뤫��;�פ狼��ʤ��ʤ�Ȼפ���

�ʤΤ����ɡ����ä�����ñ�ʳФ��������롣

������

s���ͤ��ѹ��Ǥ��뤫

�פ����

char *s = "pointer";
printf("%s\n", ++s);

��OK�����ɡ�

char s[] = "array";
printf("%s\n", ++s);

��NG�Ȥ������ȡ�GCC�ʤ�

error: wrong type argument to increment

�Ȥ������顼���Ф�Ϥ���

�¤ϡ����Τ��Ȥ�K&R�ˤ�񤤤ƤϤ��롣

P. 99
There is one difference between an array name and a pointer that must be kept in mind. A pointer is a variable. so pa=a and pa++ are legal. But an array name is not a variable; constructions like a=pa and a++ are illegal.

������ɡ�����5.3�ϥݥ��󥿡��������Ʊ����(equivalence)���ä��㶯Ĵ���Ƥ���Τǡ����Υѥ饰��դϴ�ñ���ɤ���Ȥ�����㤦��K&R�ǰ��ֺ���ʹ�ʤ󤸤�ʤ�����

Dan the Occasional C Programmer