+ 1

what does int temp = arr[0], i; in c++ mean?

temp is assinged to which value...??

13th Aug 2019, 6:18 AM
Utkarsh Dhiman
Utkarsh Dhiman - avatar
1 Antwort
+ 3
After the declaration, 'temp' will have the value of the first element inside the array 'arr', and 'i' will be an uninitialized integer.
13th Aug 2019, 6:57 AM
Shadow
Shadow - avatar