Printf a string so that letters of a string are in pair of two (in C)

后端 未结 0 396
迷失自我
迷失自我 2020-11-29 05:23

char arr[8] = "MONARCHY";

int n = 8;

for (int i = 0; i < n; i++) {

printf("%*c", 1 + !!i, arr[i]);

}

this prints M

相关标签:
回答
  • 消灭零回复
提交回复
热议问题