I am studying pascal can anyone explain me that what is Record and type?
Record is same as structures in C/C++ , used for binding together different data types .
HOW TO MAKE A RECORD :–
Type Str25 = String; TBookRec = Record Title, Author, ISBN : Str25; Price : Real; End; Var myBookRec : TBookRec;
using the line var we are making our structure named myBookrec .
Now you can initialise your record as follow :-
myBookRec.Title := 'Some Book'; myBookRec.Author := 'Victor John Saliba'; myBookRec.ISBN := '0-12-345678-9'; myBookRec.Price := 25.5;