Copy and past the following into your terminal:
gcc -dM -E - < /dev/null | grep __STDC_VERSION__ | awk '{ print $2 " --> " $3 }'
It should produce output such as:
__STDC_VERSION__ --> 201710L
Code from: https://stackoverflow.com/questions/36662063/how-can-i-know-the-version-of-c