in Technology by

How can we put nil it into dictionary/array?

1 Answer

0 votes
by

The nil in initWithObjects: is only there to tell the method where the list ends, because of how C var args work. When you add objects one-by-one with addObject: you don’t need to add a nil.

Related questions

0 votes
    What can’t we put into an array or dictionary?...
asked Nov 10, 2020 in Technology by JackTerrance
0 votes
    What happens when we invoke a method on a nil pointer?...
asked Nov 10, 2020 in Technology by JackTerrance
0 votes
    I'm beeing bit confused here. SimpleCursorAdapter adapter = new SimpleCursorAdapter(this, R.layout.bugs_list_item, ... for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jan 16, 2022 in Education by JackTerrance
0 votes
    I'm not advanced programmer in SQL and maybe my question is silly, but I haven't found an answer ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jun 2, 2022 in Education by JackTerrance
0 votes
    Is it mandatory to include underscores in variables in Python? For example, can I put myVariable in place of my_variable? Select the correct answer from above options...
asked Dec 19, 2021 in Education by JackTerrance
0 votes
    Imagine that you have: keys = ['name', 'age', 'food'] values = ['Monty', 42, 'spam'] What is the simplest way ... 42, 'food' : 'spam'} Select the correct answer from above options...
asked Jan 30, 2022 in Education by JackTerrance
0 votes
    What happens if we put a key object in a HashMap which exists? (a) The new object replaces the ... programming questions and answers pdf, java interview questions for beginners...
asked Oct 25, 2021 in Education by JackTerrance
0 votes
    I write a tool, It can get device id through the dll, and copy the id to clipboard. extern crate ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 2, 2022 in Education by JackTerrance
0 votes
    I have one column in my table which will store data in string format the sample data is {"pre- ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 27, 2022 in Education by JackTerrance
0 votes
    An urn contains m white and n black balls. A ball is drawn at random and is put back into the urn along with ... does not depend on k. Select the correct answer from above options...
asked Nov 20, 2021 in Education by JackTerrance
0 votes
    Which of the following data is put into a formula to produce commonly accepted results? (a) Raw (b) ... questions and answers pdf, Data Science interview questions for beginners...
asked Oct 30, 2021 in Education by JackTerrance
0 votes
    In LISP, the function returns t if is a CONS cell and nil otherwise __________ (a) (cons ) (b) (consp ) (c) (eq ) (d) (cous = ) Please answer the above question....
asked Oct 22, 2022 in Education by JackTerrance
0 votes
    In LISP, the function returns t if is a CONS cell and nil otherwise ________ (a) (cons ) (b) (consp ) (c) (eq ) (d) (cous =) Please answer the above question....
asked Oct 9, 2022 in Education by JackTerrance
...