C语言中定义宏问题:#define


#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#define DOUBLE(x) 2*x
#define TOUPPER(c) ('a'<+(c)&&(c)<+'z'?(c)-'a'+'A':(c))

int main(int argc,char* const argv[]) {

    printf("%d\n",DOUBLE(1+2));
    char s[100];
    strcpy(s,"abcd");
    int i=0;
    putchar(TOUPPER(s[++i]));
    
    return 0;
}

正确输出分别是·4 D,
我自己的答案是5 和B 。
想不明白为什么

宏定义就是简单的字符替换
DOUBLE(1+2)等价于2*1+2,结果就是4
1+2这里不会加括号。
下面的一个道理