HNHacker News
TopNewBestAskShowJobs

grimoire_ghost

4 karma · joined October 30, 2018

submissionscomments
grimoire_ghost··on Show HN: Astro-Bot – A programming question with every new tab
#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