Declare

Declare - Deciphering C Declarations OR: "That Swirly...

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

View Full Document Right Arrow Icon
Deciphering C Declarations OR: “That Swirly Thing” Examples plagiarized largely from the “Example C Declarations” link PPT assembled by Dan Roach Brilliant “That Swirly Thing” name is a wholly owned subsidiary of Dan's Giant Clairvoyant Space Brain
Background image of page 1

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

View Full DocumentRight Arrow Icon
How to Read Symbols () -- Function - Parameters to the function occur between parenthesis, but may not be specified. - The next thing encountered after the () containing the parameters is the function's return type [] -- Array - The next thing encountered after the square brackets is the array's type * -- Pointer to
Background image of page 2
Rules 1.Start at the variable's name. 2.Read to the right until you hit either a close parenthesis or a semicolon – NOTE: the close parenthesis signifying the end of parameters for a function don't count 3.Move back left until you hit either an open parenthesis or the beginning of the line 4.Return to 2, and ignore anything that has already been read while moving right 5.On reaching the end of the line, finish
Background image of page 3

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

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

Page1 / 8

Declare - Deciphering C Declarations OR: "That Swirly...

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

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