Skip to content

Instantly share code, notes, and snippets.

View KROSF's full-sized avatar
🚀
Learning things

Rodrigo Sanabria KROSF

🚀
Learning things
View GitHub Profile
@KROSF
KROSF / c_struct_init.c
Created May 10, 2019 08:36
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})};