Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Summary

A C program consists of creating variables of the data types available and manipulating the variables using constants, operators, and other variables to form expressions. Variables are stored in the primary memory, also called the RAM. C is a case-sensitive language. There are 32 keywords in C, with special meanings. Whitespaces may be freely used with some restrictions to improve the readability of code.

Variables and constants belong to certain domains or data types. There may be integral, floating point, or character data types with other modifications. Floating-point data can be of single, double, or extended precision as the requirement is. Strings are collections of characters. Operators in C are used along with operands to form expressions. Operators have their precedence (giving the order in which different operators are to be evaluated in an expression) and associativity (giving the evaluation order for the same operator). A value may be stored into an LValue, also called a memory location. In addition, different data types may be cast to other data types.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint