Better HN
topnewbestaskshowjobs
Log inSign up

grimoire_ghost

4 karma · joined Oct 30, 2018 (8y ago) · 1 submissions

Submissions

comment 8y ago · link · parent

#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