
My Test Short is 2 bytes
My Test Int is 4 bytes
My Test Long is 8 bytes
My Test Long Long is 8 bytes
My Test Pointer is 8 bytes
Test Completed!
Analysis
■
Lines 4 through 9 print out a simple statement to STDOUT containing a vari-
able and the platform’s definition or size associated with that variable.The
sizeof function used at the end of each line returns the number of bytes for
each instance.
■
Line 10 lets you know the program has completed.
NOTE
The previous program was created, tested, and executed on Solaris 9.
Q: What technologies or tools exist to help me verify that I am correctly program-
ming cross-compatible, dual- compatible, or platform-independent ...