Hacker News new | ask | show | jobs
by grimoire_ghost 2792 days ago
#include<stdio.h>

int main() { int array[] = { 1, 2, 3, 4, 5}; int *ptr; ptr = a; ptr++;

    return 0; 
}

This won't compile, but the answer says it should be 2

1 comments

Thank you, it's fixed now.