ed ot ieto45 nl nld otem icue isra uignmsaesd sn

Info iconThis preview shows page 1. Sign up to view the full content.

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

Unformatted text preview: n) { cu < tmsw(.)< ed; ot < ieTo45 < nl } #nld <otem icue isra> uignmsaesd sn aepc t; / ti i a eapeo js apooyeaoemi( / hs s n xml f ut rttp bv an) / tefnto cd isl i blwmi( / h ucin oe tef s eo an) dul tmsw(obe; obe ieTodul) itmi( n an) { cu < tmsw(.)< ed; ot < ieTo45 < nl } dul tmsw(obex obe ieTodul ) { rtr 2x eun *; } The importance of where the function is defined (above m i ( or not) is that the compiler requires an) that either the function prototype or the whole function itself is found above the code that uses the function. If you try to use a function called t m s w ( but the compiler has not seen any function ieTo) by that name yet, then you get a compiler error. Function return types and parameter types and names Every function must have a return type, or v i . The return type can be any type we know about od (e.g. i t d u l , s r n , b o , etc.). Or, the function can be a void function, which means we n, obe tig ol write v i instead of a return type (v i is not technically a type). The retu...
View Full Document

This note was uploaded on 05/23/2013 for the course CSE 203 taught by Professor Eckroth during the Spring '10 term at Ohio State.

Ask a homework question - tutors are online