m2 - Lecture C2: Ada: Characters and Strings Response to...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Lecture C2: Ada: Characters and Strings Response to 'Muddiest Part of the Lecture Cards' (10 respondents) 1) How do you know how many bits make up a piece of data? (1 student) The number of bits is a function of its type. The Type’First and Type’Last, tell you the range of values that the data type contains. From that, you should be able to compute the number of bits used. 2) Does Question’Last give the last used position in the string array or just the last position possible? If it gives just the last position possible what is the point of having both Question’last and Question’Length ? (1 student) Attributes for array types T’first gives first index value for array type T T’last gives last index value for array type T T’length gives number if components in array type T T’range gives the index interval for array type T Where T is the name of a constrained array type. Instead of a type name, the name of an object of an array type can be used: A’first gives first index value for array A A’last gives last index value for array A A’length gives number of components in array A A’range gives the index interval for array A First and Last are used to find the first and last index numbers in an array, they can for
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 01/28/2012 for the course AERO 16.01 taught by Professor Markdrela during the Fall '05 term at MIT.

Page1 / 4

m2 - Lecture C2: Ada: Characters and Strings Response to...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online