-
-
Save gammy/b5c2e841092b33f04171 to your computer and use it in GitHub Desktop.
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
// How the hell does this work? | |
// gcc --std=c99 -Wall -pedantic t.c | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <stdint.h> | |
int main(int argc, char *argv[]) { | |
uint32_t num_ipd_intervals = atoi(argv[1]); | |
uint32_t ipd_interval[num_ipd_intervals + 1]; | |
printf("num_ipd_intervals(argv): %u\n" | |
"Sizeof ipd_interval: %lu\n", | |
num_ipd_intervals, | |
(size_t) sizeof(ipd_interval)); | |
return(0); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://gcc.gnu.org/onlinedocs/gcc/Variable-Length.html