strange error

struct net{
char PIPIN[2];
char POPIN[2];
}n[11];

//change PIPIN and POPIN value here.

cout<<n[0].PIPIN<<", "<<sizeof(n[0].PIPIN);

// The result is: 2424,2
//here I do not know why the PIPIN size is 2, but the value printed is 2424
Topic archived. No new replies allowed.