Are the expressions arr and &arr same for an array of integers?
Answer / Parvendra Singh
No, they are not the same. Arrays are passed to functions by reference, so 'arr' is the base address of the array. On the other hand, '&arr' creates a pointer to the array (a separate variable that stores the address), which can lead to confusion and unnecessary memory usage.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is a undirected graph?
How does dynamic memory allocation help in managing data?
Why is bubble sort stable?
Can hashmap have same key?
What is the use of hashtable?
How arraylist increase its size?
Discuss the difference between a stack and an Array?
Why hashtable is faster than arraylist?
What is map keyset?
Differentiate between comparable and comparator.
Can we add duplicate keys in a hashmap?
Does treemap sort on key or value?