文档介绍:T
E
A
M
F
L
Y
Team-Fly®
C Programming
for Scientists
& Engineers
This page intentionally left blank
Manufacturing Enginoxring
Modular SeriEs
C Programming
for Scimtists
G Engincws
Robert 1 Wood
Publisher's note
Every possible effort has been made to ensure that the information contained in
this book is accurate at the time of going to press, and the publishers cannot
accept responsibility for any errors or omissions, however caused. All liability for
loss, disappointment, negligence or other damage caused by the reliance of the
information contained in this handbook, of in the event of bankruptcy or
liquidation or cessation of trade of pany, individual; or firm mentioned, is
hereby excluded.
Apart from any fair dealing for the purposes of research or private study, or
criticism or review, as permitted under the Copyright, Designs and Patents Act,
1988, this publication may only be reproduced, stored or transmitted, in any form,
or by any means, with the prior permission in writing of the publisher, or in the
case of reprographic reproduction in accordance with the terms of licences issued
by the Copyright Licensing Agency. Enquiries concerning reproduction outside
those terms should be sent to the publishers at the undermentioned address.
First published in 2002 by
Penton Press
an imprint of Kogan Page Ltd
120PentonvilleRoad
London N1 9JN
© Robert L Wood, 2002
British Library Cataloguing in Publication Data
A CIP record for this book is available from the British Library
ISBN 1 8571 8030 5
Typeset by Saxon Graphics Ltd, Derby
Printed and bound in Great Britain by Biddies Ltd, Guildford and King's Lynn
www. biddies. co. uk
Contents
Introduction 1
1. Variables, Data Types and Declaration Statements 6
Introduction 6
The character data type 7
The integer data type 10
The real data type 13
The pointer data type 15
Arr