what does int temp = arr[0], i; in c++ mean? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 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 Resposta
+ 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