TCS
Company
Programming
Are the expressions arr and &arr same for an array of 10 integers?
A.Yes
B.No
Read Solution (Total 5)
-
- no, both are different ....
&arr means address of array - 6 years agoHelpfull: Yes(7) No(0)
- Answer: Option B
Explanation:
Both mean two different things. arr gives the address of the first int, whereas the &arr gives the address of array of ints. - 6 years agoHelpfull: Yes(1) No(0)
- Yes, both the statements are same. It is the prototype for the function fun() that accepts one integer array as an parameter and returns an integer value.
- 6 years agoHelpfull: Yes(0) No(2)
- yes same.Because,arr and &arr prints the same output if u compile it
- 6 years agoHelpfull: Yes(0) No(1)
- which one is the correct answer??....
- 6 years agoHelpfull: Yes(0) No(0)
TCS Other Question