gcc中是否存在一个字节的整数数据类型? [英] Is there a integer data type of one byte in gcc?

查看:95
本文介绍了gcc中是否存在一个字节的整数数据类型?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

gcc中有一个字节的整数数据类型吗?

我知道delphi有基本的整数类型包括byte,shortint ......

字节类型是无符号的8位,如下所示:


程序TForm1.Button1Click(发件人:TObject);

var

onebyte:byte ;

^^^^


?[m?[1; 34m?°¨ó·?:?E?}?ü?a±úá `1? hiperfect.com?E[FROM:localhost]?[m

is there a integer data type of one byte in gcc?
I know delphi have fundamental integer types include byte, shortint...
the byte types is unsigned 8-bit, such as below:

procedure TForm1.Button1Click(Sender: TObject);
var
onebyte: byte;
^^^^

?° ¨ó·?:?E¨}?ü?a±úá`1? hiperfect.com?E[FROM: localhost]

推荐答案

Ptp< pt ***** @ hiperfect.com>潦草地写道:
Ptp <pt*****@hiperfect.com> scribbled the following:
gcc中有一个字节的整数数据类型吗?
is there a integer data type of one byte in gcc?




char。


-

/ - Joona Palaste(pa*****@cc.helsinki.fi)-------------芬兰--- ----- \

\ - http: //www.helsinki.fi/~palaste ---------------------规则! -------- /

"犯错是人。要真正搞砸了一台电脑。

- Anon



char.

--
/-- Joona Palaste (pa*****@cc.helsinki.fi) ------------- Finland --------\
\-- http://www.helsinki.fi/~palaste --------------------- rules! --------/
"To err is human. To really louse things up takes a computer."
- Anon


在文章< 48 ******** @ hiperfect.com>,Ptp写道:
In article <48********@hiperfect.com>, Ptp wrote:
gcc中有一个字节的整数数据类型吗?

我知道delphi有基本整数类型包括byte,shortint ...
字节类型是无符号8位,如下所示:

过程TForm1.Button1Click(发件人:TObject);
var
onebyte:byte;
^^^^
is there a integer data type of one byte in gcc?
I know delphi have fundamental integer types include byte, shortint...
the byte types is unsigned 8-bit, such as below:

procedure TForm1.Button1Click(Sender: TObject);
var
onebyte: byte;
^^^^



我不知道gcc,但标准C有char类型,根据定义,
是一个字节。一个字节是CHAR_BIT位(

< limits.h>),通常为8.

-

Andreas K?h?ri


I don''t know about gcc, but standard C has the char type, which
is one byte by definition. One byte is CHAR_BIT bits (in
<limits.h>), usually 8.
--
Andreas K?h?ri


>> gcc中是否存在一个字节的整数数据类型?
>> Is there an integer data type of one byte in gcc?

char。

char.




我认为他的意思是8位。 br />

uint8_t是否保证在每个平台上都是8位宽?



I think he meant 8 bits.

Is uint8_t guaranteed to be 8 bits wide on every platform?


这篇关于gcc中是否存在一个字节的整数数据类型?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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