Created
May 10, 2019 08:36
-
-
Save KROSF/24b55d5aa6e9235d41f3eb8ef9a58e31 to your computer and use it in GitHub Desktop.
C/Cpp tips and tricks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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