what does int temp = arr[0], i; in c++ mean? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 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 Réponse
+ 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