#include int s2(int a, int b) { return (a+b)&0x00FF00; } int main() { printf("res = 0x%04x\n", s2(123, 34545)); }