Dell Interview Question
202 Interview Reviews |
Back to all Dell Interview Questions & Reviews
Interview questions and reviews posted anonymously by interview candidates
Interview Question for Software Engineer at Dell:
Helpful Question?
Yes |
No
Inappropriate?
Answers & Comments (2)
0 of 2 people found this helpful
can be done in two ways
1) store size in the first element
2) End the last element with a sentinel value like (I feel this is more common)
For 2nd case
int64_t sum = 0;
uint32_t index = 0;
while (arr[i++] != -1)
{
sum+= arr[i];
}
return sum;
Helpful Answer?
Yes |
No
Inappropriate?
To comment on this
question,
Sign In with Facebook or
Sign Up
1 of 1 people found this helpful
by Interview Candidate: