作业社区
探索学习新天地,共享知识资源!
学渣小白 的学生作业:
#include #define debug 0 #define DEBUG_PRINT(…) do { if(debug) printf(VA_ARGS); } while(0) void do_sum() { int m=0,intermediate_variable=0; printf(“Please input data from the keyboard and assign it to m” “\n”); scanf("%d",&m); if (m%2==1) { for (int i=1; i
+9
学渣小白 的学生作业:
#include #define debug 1 #define DEBUG_PRINT(…) do { if(debug) printf(VA_ARGS); } while(0) int main(void) { //DEBUG_PRINT (“Simplified debugging: temp=% d, formula calculation:% d \n”, temp, temp+10); char a1[] = “abcde”; char a2[] = “XYZBBQ”; char *p_array[] = {a1,a2,NULL}; for (int i=0; *(p_array[0]+i)!='\0'; i++) { *(p_array[0]+i)-=32; } for (int i=0; i
+12