没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
Discover how C's efficiency makes it a popular choice in a wide variety of applications and operating systems with special applicability to wearables, game programming, system level programming, embedded device/firmware programming and in Arduino and related electronics hobbies in this condensed code and syntax guide. This book presents the essential C syntax in a well-organized format that can be used as a quick and handy reference.
资源推荐
资源详情
资源评论














Modern C
Quick Syntax
Reference
A Pocket Guide to the Language,
APIs, and Library
—
Second Edition
—
Mikael Olsson

Modern C Quick
Syntax Reference
A Pocket Guide to the
Language, APIs, and Library
Second Edition
Mikael Olsson

Modern C Quick Syntax Reference: A Pocket Guide to the Language, APIs,
and Library
ISBN-13 (pbk): 978-1-4842-4287-2 ISBN-13 (electronic): 978-1-4842-4288-9
https://doi.org/10.1007/978-1-4842-4288-9
Library of Congress Control Number: 2018967003
Copyright © 2019 by Mikael Olsson
is work is subject to copyright. All rights are reserved by the Publisher, whether the whole or
part of the material is concerned, specically the rights of translation, reprinting, reuse of
illustrations, recitation, broadcasting, reproduction on microlms or in any other physical way,
and transmission or information storage and retrieval, electronic adaptation, computer software,
or by similar or dissimilar methodology now known or hereafter developed.
Trademarked names, logos, and images may appear in this book. Rather than use a trademark
symbol with every occurrence of a trademarked name, logo, or image we use the names, logos,
and images only in an editorial fashion and to the benet of the trademark owner, with no
intention of infringement of the trademark.
e use in this publication of trade names, trademarks, service marks, and similar terms, even if
they are not identied as such, is not to be taken as an expression of opinion as to whether or not
they are subject to proprietary rights.
While the advice and information in this book are believed to be true and accurate at the date of
publication, neither the authors nor the editors nor the publisher can accept any legal
responsibility for any errors or omissions that may be made. e publisher makes no warranty,
express or implied, with respect to the material contained herein.
Managing Director, Apress Media LLC: Welmoed Spahr
Acquisitions Editor: Steve Anglin
Development Editor: Matthew Moodie
Coordinating Editor: Mark Powers
Cover designed by eStudioCalamar
Cover image designed by Freepik (www.freepik.com)
Distributed to the book trade worldwide by Springer Science+Business Media NewYork,
233 Spring Street, 6th Floor, NewYork, NY 10013. Phone 1-800-SPRINGER, fax (201) 348-4505,
e-mail orders-ny@springer-sbm.com, or visit www.springeronline.com. Apress Media, LLC is a
California LLC and the sole member (owner) is Springer Science + Business Media Finance Inc
(SSBM Finance Inc). SSBM Finance Inc is a Delaware corporation.
For information on translations, please e-mail editorial@apress.com; for reprint, paperback, or
audio rights, please email bookpermissions@springernature.com.
Apress titles may be purchased in bulk for academic, corporate, or promotional use. eBook
versions and licenses are also available for most titles. For more information, reference our Print
and eBook Bulk Sales web page at http://www.apress.com/bulk-sales.
Any source code or other supplementary material referenced by the author in this book is
available to readers on GitHub via the book's product page, located at www.apress.
com/9781484242872. For more detailed information, please visit http://www.apress.com/
source-code.
Printed on acid-free paper
MikaelOlsson
Hammarland, Länsi-Suomi, Finland

iii
Table of Contents
Chapter 1: Hello World ��������������������������������������������������������������������������1
Creating a Project �������������������������������������������������������������������������������������������������1
Adding a Source File ���������������������������������������������������������������������������������������������2
Hello World ������������������������������������������������������������������������������������������������������������ 2
IntelliSense �����������������������������������������������������������������������������������������������������������3
Chapter 2: Compile and Run �����������������������������������������������������������������5
Visual Studio Compilation �������������������������������������������������������������������������������������5
Console Compilation ���������������������������������������������������������������������������������������������6
Comments ������������������������������������������������������������������������������������������������������������� 7
Chapter 3: Variables �����������������������������������������������������������������������������9
Data Types �������������������������������������������������������������������������������������������������������������9
Declaring Variables ���������������������������������������������������������������������������������������������10
Assigning Variables ��������������������������������������������������������������������������������������������� 10
Printing Variables ������������������������������������������������������������������������������������������������11
Integer Types �������������������������������������������������������������������������������������������������������12
Signed and Unsigned ������������������������������������������������������������������������������������������13
Sized Integers �����������������������������������������������������������������������������������������������������15
About the Author ���������������������������������������������������������������������������������ix
About the Technical Reviewer �������������������������������������������������������������xi
Introduction ���������������������������������������������������������������������������������������xiii

iv
Floating-Point Types ��������������������������������������������������������������������������������������������16
Literal Sufxes ����������������������������������������������������������������������������������������������������16
Char Type ������������������������������������������������������������������������������������������������������������17
Bool Type �������������������������������������������������������������������������������������������������������������18
Variable Scope ����������������������������������������������������������������������������������������������������18
Chapter 4: Operators ��������������������������������������������������������������������������21
Arithmetic Operators ������������������������������������������������������������������������������������������� 21
Assignment Operators ����������������������������������������������������������������������������������������22
Increment and Decrement Operators ������������������������������������������������������������������22
Comparison Operators ����������������������������������������������������������������������������������������23
Logical Operators ������������������������������������������������������������������������������������������������ 23
Bitwise Operators �����������������������������������������������������������������������������������������������24
Operator Precedence ������������������������������������������������������������������������������������������25
Chapter 5: Pointers �����������������������������������������������������������������������������27
Creating Pointers ������������������������������������������������������������������������������������������������27
Dereferencing Pointers ���������������������������������������������������������������������������������������27
Pointing to a Pointer ��������������������������������������������������������������������������������������������28
Null Pointer ���������������������������������������������������������������������������������������������������������29
Chapter 6: Arrays ��������������������������������������������������������������������������������31
Array Declaration and Allocation �������������������������������������������������������������������������31
Array Assignment ������������������������������������������������������������������������������������������������ 31
Multi-Dimensional Arrays ������������������������������������������������������������������������������������32
Arrays and Pointers ���������������������������������������������������������������������������������������������32
Array Size ������������������������������������������������������������������������������������������������������������ 33
Table of ConTenTsTable of ConTenTs
剩余112页未读,继续阅读
资源评论


cengagewang
- 粉丝: 4
- 资源: 19
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助


最新资源
- APA水平泊车算法与车辆实时控制:Matlab与C++联合仿真路径规划与跟踪算法研究,APA泊车算法详解:Matlab与C++联合仿真实现路径规划与车辆控制,APA水平泊车算法,matlab和C++联
- 学生选课-安卓-基于android的学生选课系统设计与实现
- 基于Matlab的无线充电仿真研究:四套模型解析-LLC谐振恒压输出、LCC-S拓扑磁耦合谐振恒压输出、LCC-P拓扑磁耦合谐振恒流输出及S-S拓扑补偿模型探究,基于Matlab的无线充电仿真研究:
- 基于S7-200 PLC与组态王技术的多维度分拣系统:大小、颜色、材质与形状的智能识别与处理No.883,基于S7-200 PLC与组态王控制的大小球颜色材质分拣系统技术实现与优化研究(No.883)
- 垃圾分类-WeChat-基于微信小程序的垃圾分类设计与实现(毕业论文)
- Screenshot_20250219_200245.jpg
- S7-200 PLC在变电站变压器自动化中的高级应用:No.1219案例分析,S7-200 PLC在变电站变压器自动化中的关键应用:No.1219的实践与探索,No.1219 S7-200 PLC在变
- 基于LQR控制算法的四轮独立电驱车辆横向稳定性控制研究:双移线工况仿真与PID及无控车辆对比,基于LQR控制算法的四轮独立电驱汽车横向稳定性控制研究:双移线工况仿真与PID及无控车辆对比,适用方向:基
- 基于银河麒麟桌面&服务器操作系统的DeepSeek本地化部署方法.pdf
- 电子科技大学毕设设计论文LaTeX模板-UESTCthesis
- 零担物流智慧管理-WeChat-基于微信小程序的零担物流智慧管理平台设计(毕业论文)
- 基于高温流变与热加工过程的材料本构模型研究-真应力-真应变关系、本构方程参数拟合与动态再结晶行为的探究,材料热加工工艺中的真应力-应变分析与本构模型构建-探究高温流变特性及功率耗散因子计算,高温流
- 新版骆驼IPTV小肥米iptv管理系统全开源源码可对接EZtv电视直播管理系统.zip
- https://upload.csdn.net/creation/uploadResources?spm=1011.2124.3001.5646
- 云开发高效学习微信小程序源码共享平台.zip
- 基于Simulink的模块化多电平变换器MMC仿真解析:从交流380V到直流800V的整流过程,附搭建指南、原理出处与PCB电路设计实践,模块化多电平变换器MMC仿真详解:从原理到实践,电力电子交直流
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈



安全验证
文档复制为VIP权益,开通VIP直接复制
