take home exam

take home exam - Programming Language Concepts Name:...

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

View Full Document Right Arrow Icon

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

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

Unformatted text preview: Programming Language Concepts Name: ________________________ Date: _____________________ 1. Write regular expressions to capture the following. Numeric constants in C. These are octal, decimal, or hexadecimal floating-point values. An octal integer begins with 0, and many contain only the digits 0-7. A hexadecimal integer begins with 0x or 0X, and may contain only the digits 0-9 and a/A-f/F. A decimal floating-point value has a fractional portion (beginning with a dot) or an exponent (beginning with E or e). Unlike a decimal integer it is allowed to start with 0. A hexadecimal floating-point value has an optional fractional portion and a mandatory exponent (beginning with P or p). In either decimal or hexadecimal, there may be digits to the left of the dot, the right of the dot, or both, and the exponent itself is given in decimal, with an optional leading + or – sign. An integer may end with an optional U or u (indicating “unsigned”), and/or L or l (indicating “long”) or LL or ll (indicating “long long”). A floating –point value may end with an optional F or f (indicating ‘float” – single precision) or L or l (indicating “long – double precision). _______________________________________________________________________ _______________________________________________________________________ _______________________________________________________________________ _______________________________________________________________________ _______________________________________________________________________ _______________________________________________________________________ _______________________________________________________________________ _______________________________________________________________________ _______________________________________________________________________ _______________________________________________________________________ _______________________________________________________________________ _______________________________________________________________________ _______________________________________________________________________ _______________________________________________________________________ _______________________________________________________________________ _______________________________________________________________________...
View Full Document

This note was uploaded on 11/27/2010 for the course CS 10268 taught by Professor Miles during the Spring '10 term at Grambling State.

Page1 / 10

take home exam - Programming Language Concepts Name:...

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