小端或大端??? [英] little endian or big endian ???

查看:102
本文介绍了小端或大端???的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

编写一个小型C程序,以确定机器的类型是否为
little-endian或big-endian。

解决方案

6月28日下午12:01,guthena< r4r ... @ gmail.comwrote:


写一个小C程序,以确定机器的类型是否为
little-endian或big-endian。



这是常见问题。


guthena写道,On 28/06/07 20:01:


编写一个小型C程序来确定机器的类型是否为

little-endian或big-endian 。



省去麻烦并使用一台机器,其中char,short,int和

长都是相同的大小。


另外,做自己的功课。一旦你发布了你的尝试

有人可能会帮助你。

-

Flash Gordon


在文章< 11 ********************* @ j4g2000prf.googlegroups.c om>,

guthena< r4 **** @ gmail.comwrites


>编写一个小型C程序来确定机器的类型是否为
little-endian或big-endian。



这个作业什么时候必须完成?


-

\ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \\ \\ / \ / \ / \ / \ / \ / \ / \

\ / \ / \ / \ / \ Chris Hill Staffs England / \\ \\ / \ / \ / \ /

/ \ / \ / ch *** @ phaedsys。组织 www.phaedsys.org \ / \ / \

\ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \\ \\ \\ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ /


Write a small C program to determine whether a machine''s type is
little-endian or big-endian.

解决方案

On Jun 28, 12:01 pm, guthena <r4r...@gmail.comwrote:

Write a small C program to determine whether a machine''s type is
little-endian or big-endian.

It''s a FAQ.


guthena wrote, On 28/06/07 20:01:

Write a small C program to determine whether a machine''s type is
little-endian or big-endian.

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


In article <11*********************@j4g2000prf.googlegroups.c om>,
guthena <r4****@gmail.comwrites

>Write a small C program to determine whether a machine''s type is
little-endian or big-endian.

When does this homework have to be completed by?

--
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
\/\/\/\/\ Chris Hills Staffs England /\/\/\/\/
/\/\/ ch***@phaedsys.org www.phaedsys.org \/\/\
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/


这篇关于小端或大端???的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆