Planet of NCCUCS
adobe photoshop 8.0 warez Adobe Premiere Pro CS5 can t reinstall adobe creative suite download adobe photoshop 8 0 cs Adobe Illustrator CS5 adobe premiere pro 1.5 serial key adobe acrobat reader 6.0 free Adobe Dreamweaver CS5 adobe course indesign software adobe photoshop free cursive fonts Adobe Photoshop CS5 Extended adobe photoshop elements 4 help sound adobe photoshop logos Adobe Creative Suite 5 Master Collection adobe creative suite torrents adobe photoshop and trial version Adobe Acrobat 9 Pro Extended adobe photoshop shape tools adobe photoshop free trial software Adobe Contribute CS5 wartz adobe acrobat adobe creative suite 2 academic Adobe Indesign CS5 adobe acrobat approval adobe premiere preview download Adobe Flash Catalyst CS5 602 acrobat adobe reader update adobe acrobat 7 reader update Adobe Flex Builder 3 Pro opening pps in adobe photoshop

C data type

作者:Anderson on 二月 4, 2009 Posted in RSS | | 觀看文章來源

C has really only four types of variables:

1. char
2. int
3. float
4. double

Keyword Variable Type Range

char Character (or string) -128 to 127 (1 byte)

int Integer -32,768 to 32,767 (4 byte)

short Short integer -32,768 to 32,767 (4 byte)

short int Short integer -32,768 to 32,767 (4 byte)

long Long integer -2,147,483,648 to 2,147,483,647

unsigned char Unsigned character 0 to 255
unsigned int Unsigned integer 0 to 65,535
unsigned short Unsigned short integer 0 to 65,535
unsigned long Unsigned long integer 0 to 4,294,967,295

float Single-precision +/-3.4E10^38 to +/-3.4E10^38
floating-point
(accurate to 7 digits)

double Double-precision +/-1.7E10^308 to +/-1.7E10^308
floating-point
(accurate to 15 digits)

Pointer is the address in thememory.

Pointer is a data type just like int,float, and char.

int

* 4 bytes(假設硬體為32位元)
* 其內容存放2補數的整數數值
* 運算子(operator) : +,-,*(乘法),/,%,&(bitAND),|,^,~,<<,>>,=

int*

* 4 bytes(假設硬體為32位元)
* 其內容存放記憶體的地址(可視為unsigned int)
* 運算子(operator):*(透過pointer取記憶體內容),&(取變數地址),=,+,-

相關資源:

C Language Tutorial

C程式語言教學

How to get maximum and minimum values of data type ?


main(){
int i,j ;
i = 1;

while (i > 0) {
j = i;
i++;
}
printf (”the maximum value of integer is %d\n”,j);
printf (”the value of integer after overflow is %d\n”,i);
}

:

讀過本文的讀者, 也對以下文章有興趣

No comments for this entry yet...

Comments are closed.

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

最新文章

照片

R0012028R0012036R0013553R0013551R0013550R0013549R0013560R0013558R0013569R0013561R0013570R0013571R0013580R0013581R0013556R0013567R0013563R0013572R0011783R0012312