Question:
What is the difference between null array and an empty array?
Answer:
int* arr[] when you declare it as globel it contais only null that means null array. the array which cantain 0 elements is called empty array. by my assemtion Source: CoolInterview.com
Answered by: DINAKARAN.A | Date: 8/6/2008
| Contact DINAKARAN.A
null array:means array size is not declared i.e int a[]; empty array:array size is declared but no values contain in array ie. int a[10]; Source: CoolInterview.com
Answered by: Prashant | Date: 7/23/2010
| Contact Prashant
its totally depends on the declaration if array is declared globally then whole value is set to bydefault NULL ; but if array declared locally then we will have to declare it by {0} so this is called empty array Source: CoolInterview.com
Answered by: rahul sharma | Date: 7/30/2010
| Contact rahul sharma
actually null array is that in which all the elements of an array are zero while empty array is unassigned array Source: CoolInterview.com
Answered by: mohd.salman | Date: 8/25/2010
| Contact mohd.salman
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|