Could somebody help me with this piece of code.
I have no idea that what it does.
#include <stdio.h>
int main()
{
int arr[5],i;
int a = 1, n = 5;
for (i=0; i<5;a+= arr[i++]);
int d = a;
printf("%d",d);
}
>Solution :
yes you have one array names arr(arrays are pointer to the single values) and then you go into the for loop and because you didnt gave arr[0-5] any numbers these are random, so a gets random numbers. then d = a that means you give the value of a to d. and then you print d