I wrote a C program for both Linux and Windows.
I use Git to store versions of the code.
Is there a way to have the program version displayed when I start it ? Can you tell me how to write these lines of code ?

To know the current version of the written code, from bash just write:
Code:
git describe --abbrev = 4 --always --tags