what does int temp = arr[0], i; in c++ mean? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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 Answer
+ 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