{}
CHRISTMAS
OFFER
62
%OFF

Stop copy pasting code you don't actually understand

Build the coding confidence you need to become a developer companies will fight for

Stop copy pasting code you don't actually understand

Become a PRO
Become a PRO
CHRISTMAS
OFFER
62
%OFF

Stop copy pasting code you don't actually understand

Build the coding confidence you need to become a developer companies will fight for

Stop copy pasting code you don't actually understand

Become a PRO
Become a PRO
run-icon
main.c
// Online C compiler to run C program online #include <stdio.h> int main() { // Write C code here printf("Try programiz.pro"); int arr[10] = {0}; // all 0 array int *A = arr; //arr[0] *A = 69; // insert a value arr points here. A+0. A++; *A=420; A+=1; // Change to 0,1,10, 100, 1000... to see interesting behaviors of C. *A=42; // Now some offset int *C = (int*) (A - arr); // whats this? A: Offset of A from arr. length of the array, which can now be greater than 10 !! Not recommended!!! for (int i=0; i<10; i++) printf("\n%d", arr[i]); printf("\n%d registers in between A & arr", A- arr); return 0; }
Output