<div class="gmail_quote">On Sat, Jun 2, 2012 at 11:33 PM, ÄþÄþ ¶ <span dir="ltr"><<a href="mailto:dncdd@yahoo.com.cn" target="_blank">dncdd@yahoo.com.cn</a>></span> wrote:<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div style="font-size:12pt;font-family:times new roman,new york,times,serif">Anyone can tell me what is the meaning of those hex values? and why does the author use them?<br>
why do they define "MPI_CHAR" as ((MPI_Datatype)0x4c000101) instead of "char"?<br></div></div></blockquote><div><br></div><div>MPI_CHAR is a constant value, not a type. You should not care what the numeric value is (and your code definitely should not depend on it).</div>
<div><br></div><div>MPI_Datatype is a type (like "char" is a type), but it is different for different MPI implementations. Again, your code should not assume anything about this type.</div></div>