Ok, first post, I know I'm not allowed to ask for someone to do my homework for me but I've looked everywhere for a possible solution to this peice of problem code and I cant even find a complier that replicates the error let alone a mention of what I should be looking for:
It's an inline int Max(a, b) function thats given 10, and 0 as
The question says that sometimes this code will return 0, I cant find a complier that does that.Code:#include <stdio.h> typedef unsigned short Word; inline int Max( int n, int m) { return n>m ? n : m; } Word w1=40000,w2 = 0; int main() { printf( “%d\n”, Max( w1, w2) ); return 0; }
Any help just with what errors i should be looking for would be greatly appricated.