I have been cracking my head at achieving something very simple in C in order to make my one of the programs (not written by me) in our computational physics project more dy
If it must be at compile time, there is nothing in the standard that provides for a repeating macro like that. As in another (question), for bounded N, you can prepare N macros that expand to your desired comparison.
While yet another alternative is memcmp
memcmp( data, data2, array_len_in_bytes );
reference