cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
strange error
strange error
Nov 14, 2010 at 5:52am UTC
qjwzyy
(2)
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
Nov 14, 2010 at 6:54am UTC
Disch
(13742)
crosspost
http://cplusplus.com/forum/beginner/31513/
Topic archived. No new replies allowed.