Skip to content

Instantly share code, notes, and snippets.

@KROSF
Created May 10, 2019 08:36
Show Gist options
  • Save KROSF/24b55d5aa6e9235d41f3eb8ef9a58e31 to your computer and use it in GitHub Desktop.
Save KROSF/24b55d5aa6e9235d41f3eb8ef9a58e31 to your computer and use it in GitHub Desktop.
C/Cpp tips and tricks
#include <stdio.h>
#include <stdlib.h>
struct Points{
int* x;
int* y;
};
int main(void) {
struct Points p = { .x = ((int[10]){0}), .y = ((int[]){4,5,6})};
printf("%n",p.y[2]);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment