Hi, I am just starting to code in C. While using the
#define sec 3600
the compiler returned an error - expected identifier or ‘(’ before numeric constant.
#define sec 3600
#include<stdio.h>
#include <stdlib.h>
int main(){
/*Rest of the code*/
If I change sec to seconds, the compiler does not return any errors and the program executes normally. I don't understand. Is sec a keyword or is predefined? Is there some rule about preprocessor directives that I am not familiar with?