Tuesday, September 9, 2008

Apple ACPT Certification Exam 9L0-402

You might have noticed by now that some of the functions yield results. Other functions 9L0-509 perform an action but don't return a value. That raises some questions:

* What happens if you call a function and you don't do anything with the result (i.e. you don't assign it to a variable or use it as part of a larger expression)?
* What happens if you use a function without a result as part of an expression, like newLine() + 7?
* Can we 9L0-402 dumps write functions that yield results, or are we stuck with things like newLine and printTwice?

The answer to the third question is "yes, you can write functions that return values," and we'll do it in a couple of chapters. I will leave it up to you to answer the other two 9L0-509 questions by trying them out. Any time you have a question about what is legal or illegal in C++, a first step to find out is to ask the compiler. However you can not rely on the compiler for two reasons: First a compiler has bugs just like any other software, so it happens that not every source code which is forbidden in C++ is properly rejected by the compiler, and vice versa. The other reason is even more dangerous: You can write programs in C++ which a C++ implementation is not required to reject, but whose behavior is not 9L0-402 audio exam defined by the language. Needless to say, running such a program can, and occasionally will, do harmful things to the system it is running or produce corrupt output!

No comments: