Today while I was developing a C program a college of mine pointed out that I was doing something wrong.
He said that the code that I was doing which is similar to the code below is wrong, and that you can't define a constant based on another constant. The program ended up working anyway, and I was left wondering if he was right. Is the code below wrong/breaks best practices?
const int num=5;
const int num2=num*2;