Code AnalysisHard 60s
Trace: Pointer Difference
What does e-s print?
Starter code
#include <stdio.h>
int main() {
int a[] = {1, 2, 3, 4, 5};
int *s = a, *e = a + 4;
printf("%td", e - s);
return 0;
}Think you can answer under pressure?
Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.