Login

Welcome, Guest. Please login or register.

September 08, 2025, 12:44:26 am

Author Topic: Records.  (Read 1499 times)  Share 

0 Members and 1 Guest are viewing this topic.

speedy

  • Victorian
  • Forum Obsessive
  • ***
  • Posts: 336
  • Respect: 0
  • School Grad Year: 2014
Records.
« on: November 15, 2013, 10:50:32 am »
0
Does a record only consist of one row of data? For example, a record would store the address, phone number and email of one person and to store details of another person another record would need to be created...?
Therefore, the most efficient way of storing multiple records would be in an array?
Also each column in a record has a set size, right? For example, if I tried to add a number of the size 10 bytes to a column in the record which was set to only allow 2 bytes, the number would get cut off?

Am I on the right track?

Also good luck on the exam everyone!  :)
« Last Edit: November 15, 2013, 10:53:26 am by knightaz »
Physics [50] | Chemistry [45] | English [42] | IT:SD [44]
ATAR: 98.95

XpK

  • Victorian
  • Adventurer
  • *
  • Posts: 19
  • Programming Master Race, reporting in
  • Respect: 0
  • School: BMG
  • School Grad Year: 2013
Re: Records.
« Reply #1 on: November 15, 2013, 12:01:39 pm »
0
A record is a structure that can hold many different data types. Arrays can only hold entries of one data type (for most languages).

For example, a record would store the address, phone number and email of one person and to store details of another person another record would need to be created...?

Records have indexes like arrays, but different data types such as string, int, char can be stored for the one index

Best of luck this arvo!
Lover of cars, player of guitars, king of the friendzone.

[Physics]
[English]
[Methods]
[Legal]
[IT SD]

^^ I've been waiting a whole damn year to fill that in with Study Scores...