Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3022

Re: Structure fragmentation and field symbol

$
0
0

have you checked the output?

 

in your example s1 should be 'AZ 12 4444'

But it probably is not the same for <fs_x>

 

The thing is, field symbols are like pointers, they reference another element in memory. So what happens when the type of the reference is shorter than the referenced element, it should get be cut off.

 

Give it a try and print it.


Viewing all articles
Browse latest Browse all 3022

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>