#include<stdio.h>
#include<stdlib.h>
int main ( void )
{
bool* Str_A = (bool*)calloc(1024,1);
bool* Str_B = (bool*)calloc(1024,1);
*Str_A = true;
*Str_B = true;
*(Str_A+2) = *Str_A+*Str_B;
printf("%s", (Str_A+2)?"true":"false");
}
无论我是否更改*Str_A
或/和更改*Str_B
,false
它总是打印true
。为什么?