问题描述
编写一个小型C程序,以确定机器的类型是否为
little-endian或big-endian。
这是常见问题。
省去麻烦并使用一台机器,其中char,short,int和
长都是相同的大小。
另外,做自己的功课。一旦你发布了你的尝试
有人可能会帮助你。
-
Flash Gordon
这个作业什么时候必须完成?
-
\ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \\ \\ / \ / \ / \ / \ / \ / \ / \
\ / \ / \ / \ / \ Chris Hill Staffs England / \\ \\ / \ / \ / \ /
/ \ / \ / \ / \ / \
\ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \\ \\ \\ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ /
Write a small C program to determine whether a machine''s type is
little-endian or big-endian.
It''s a FAQ.
Save yourself the trouble and use a machine where char, short, int and
long are all the same size.
Alternatively, do your own homework. Once you''ve posted your attempt
someone might help you with it.
--
Flash Gordon
When does this homework have to be completed by?
--
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
\/\/\/\/\ Chris Hills Staffs England /\/\/\/\/
/\/\/ ch***@phaedsys.org www.phaedsys.org \/\/\
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
这篇关于小端或大端???的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!