Skip to Content
Cクイックリファレンス 第2版
book

Cクイックリファレンス 第2版

by Peter Prinz, Tony Crawford, 黒川 利明, 島 敏博
November 2016
Beginner to intermediate
816 pages
19h 58m
Japanese
O'Reilly Japan, Inc.
Content preview from Cクイックリファレンス 第2版
21
2
プログラムは整数や浮動小数点数などさまざまなデータをさまざまな方法で格納し処理
しなければならない。そのために、コンパイラは値がどの種類のデータを表すのか理解す
る必要がある。
Cで、オブジェクトとは内容が値を表すメモリの位置を指す。名前のあるオブジェクトは
変数とも呼ばれる。オブジェクトのはメモリ上でオブジェクトの占める空間量を決める。
例えば、同じビットパターンでも、データオブジェクトが符号付き(正か負か)か符号なし
(負数を表せない)かどちらに解釈されるかで全く異なる整数値を表す。
2.1
 型分類
C言語での型は次に分類される。
基本型
標準整数型および拡張整数型
実浮動小数点型および複素浮動小数点型
列挙型
void
派生型
ポインタ型
配列型
構造体型
共用体型
関数型
基本型と列挙型はまとめて算術型と呼ばれる。算術型とポインタ型はまとめてスカラ型
と呼ばれる。最後に、配列
型と構造体型はまとめて集約型と呼ばれる(共用体型はメンバの
うち1つしか値を格納できないので集約型と考えない)。
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Rustの練習帳 ―コマンドラインツールの作成を通してRustを学ぶ

Rustの練習帳 ―コマンドラインツールの作成を通してRustを学ぶ

Ken Youens-Clark, 中山 光樹
Unityによるモバイルゲーム開発 ―作りながら学ぶ2D/3Dゲームプログラミング入門

Unityによるモバイルゲーム開発 ―作りながら学ぶ2D/3Dゲームプログラミング入門

Jon Manning, Paris Buttfield-Addison, 鈴木 久貴, あんどうやすし, 江川 崇, 安藤 幸央, 高橋 憲一

Publisher Resources

ISBN: 9784873117812Other