Questions on Retain count.

Shantaram Kokate
2 min readMar 15, 2019

Please write your answer in responses

  1. What will be the retain count of variable rollNumber(Program 1.0)?
Program 1.0

2. What will be the retain count of variable rollNumber(Program 1.1)?

2.1. What is the retain count of globalArray(Program 1.1)?

Program 1.1

3. What is the retain count of the address variable(Program 1.2)?

Program 1.2

4. What is the retain count of the profileImage(Program 1.3)?

Program 1.3

5. What is the retain count of the yellowView(Program 1.4)?

Program 1.4

6. What is the retain count of the address variable(Program 1.5)?

Program 1.5

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Shantaram Kokate
Shantaram Kokate

Responses (3)

Write a response

1: 0
2: 0
2.1: 1
3: 0
4:1
5: 1
6: 1...

--

Q. 1? = Retain Count : 5
Q. 2? = Retain Count : 5
Q. 2.1? = Retain Count : 1
Q. 3? = Retain Count : 0
Q. 4? = Retain Count : 1
Q. 5? = Retain Count : 1...

--