,C PROGRAMMING TUTORIAL
Simply Easy Learning by tutorialspoint.com
tutorialspoint.com
i
, COPYRIGHT & DISCLAIMER NOTICE
All the content and graphics on this tutorial are the property of tutorialspoint.com. Any content from
tutorialspoint.com or this tutorial may not be redistributed or reproduced in any way, shape, or form without the
written permission of tutorialspoint.com. Failure to do so is a violation of copyright laws.
This tutorial may contain inaccuracies or errors and tutorialspoint provides no guarantee regarding the accuracy of
the site or its contents including this tutorial. If you discover that the tutorialspoint.com site or this tutorial
content contains some errors, please contact us at webmaster@tutorialspoint.com
ii
, Table of Contents
C Language Overview .............................................................. 1
Facts about C ............................................................................................... 1
Why to use C ? ............................................................................................. 2
C Programs .................................................................................................. 2
C Environment Setup ............................................................... 3
Text Editor ................................................................................................... 3
The C Compiler ............................................................................................ 3
Installation on Unix/Linux ............................................................................. 4
Installation on Mac OS .................................................................................. 4
Installation on Windows ............................................................................... 4
C Program Structure ................................................................ 5
C Hello World Example ................................................................................. 5
Compile & Execute C Program ....................................................................... 6
C Basic Syntax ......................................................................... 7
Tokens in C .................................................................................................. 7
Semicolons ; ................................................................................................ 7
Comments ................................................................................................... 8
Identifiers .................................................................................................... 8
Keywords .................................................................................................... 8
Whitespace in C ........................................................................................... 9
C Data Types ......................................................................... 10
Integer Types ............................................................................................. 10
Floating-Point Types ................................................................................... 11
The void Type ............................................................................................ 12
C Variables ............................................................................ 13
Variable Declaration in C ................................Error! Bookmark not defined.
Variable Initialization in C ...............................Error! Bookmark not defined.
Lvalues and Rvalues in C ............................................................................. 15
C Constants and Literals ........................................................ 17
Integer literals............................................................................................ 17
Floating-point literals.................................................................................. 18
Character constants.................................................................................... 18
iii
Los beneficios de comprar resúmenes en Stuvia estan en línea:
Garantiza la calidad de los comentarios
Compradores de Stuvia evaluaron más de 700.000 resúmenes. Así estas seguro que compras los mejores documentos!
Compra fácil y rápido
Puedes pagar rápidamente y en una vez con iDeal, tarjeta de crédito o con tu crédito de Stuvia. Sin tener que hacerte miembro.
Enfócate en lo más importante
Tus compañeros escriben los resúmenes. Por eso tienes la seguridad que tienes un resumen actual y confiable.
Así llegas a la conclusión rapidamente!
Preguntas frecuentes
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
100% de satisfacción garantizada: ¿Cómo funciona?
Nuestra garantía de satisfacción le asegura que siempre encontrará un documento de estudio a tu medida. Tu rellenas un formulario y nuestro equipo de atención al cliente se encarga del resto.
Who am I buying this summary from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller iqrafatima. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy this summary for $7.49. You're not tied to anything after your purchase.