Archive for the 'PASCAL' Category

Pascal Data Types

Sunday, April 22nd, 2007

PASCAL is a very rich language in data types,uses ASCII charset.

Variable names:case sensitive,start with letter or _,any length significant first 31 chars rest are ignored.

ex: april_2007,April_2007,total_sum,totalsum  are valid

22_april ,2nd,{,” etc.. are invalid,

Constants:(CONST)are defined top of the programs,  CONST  Pi=3,14; value of Pi cannot change in program, TRUE,FALSE,Maxint can be used in program without declaring (built-in constants)

Variables:(VAR) All variable smsut be declared before they used in program, Like VAR count:Integer; Pascal provides many variable types,commanly used ones integer,real,char,boolean…..

……Devam edecek…..