Multiple choice

Which of the following is/are correct about NSLog() in Objective C?

  1. It provides the format specific to the strings.

  2. It is used to denote an object.

  3. It specifies the new value should be sent -retain on assignment and the old value sent release.

  4. It specifies the new value should be sent -copy on assignment and the old value sent release.

  5. It returns the class and memory address of the object.

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

NSLog() uses format specifiers to indicate substitution tokens, just like the C standard library printf() function.