1.
Êä³öʲô£¿
const char str1[] = ¡°abc¡±;
const char str2[] = ¡°abc¡±;
const char *p1 = ¡°abc¡±;
const char *p2 = ¡°abc¡±;
cout << (str1 == str2) << endl;
cout << (p1 == p2) << endl;
2.
Êä³öʲô£¿
void Show(int num[])
{
cout << sizeof(num) << endl;
}
3.
ʵÏÖ strcpy()
char *strcpy(char *strD, char *strS)
4.
socket¿Í»§¶ËºÍ·þÎñÆ÷µÄʵÏÖ
5.
0XFF»»³ÇÊ®½øÖÆÊǶàÉÙ
6.
˵³öº¯ÊýÔËÐнá¹û,²¢ËµÃ÷Ϊʲô
void malloc(char *p)
{
p = (char *)malloc(100);
}
int main()
{
char *p = NULL;
malloc(p);
if (P != NULL)
{
cout << ¡°ok¡± << endl;
}
else
{
cout << ¡°error¡± << endl;
}
}