Given your Makefile and the file modification information as
Given your Makefile and the file modification information as follows, if we type \"make\", please list the new files that will be generated in the timely order from the first to the last, or simply \'f\' is up to date: In C, a logical expression will have a result of true or false (1 or 0). Any value that is not zero will be considered true (with resulting value 1). Also, if a logical expression result is known, the rest of the expression will not be evaluated. What will be the output of the program? #include int main() {int i = -1, j = 2, k = 1, m; m = (++i || --j) && --k;//m is the result of the logical expression printf(\"%d, %d, %d, %d\ \", i, j, k, m); return 0;} What will be the output of the program ? #include #include int main() {char strl[20] = \"Hello\", str2 [20] = \"World\"; printf(\"%s\ \", strcat(strl, strncpy(str2, strl, 3))); return 0;}
Solution
Question 4:
int i=-1,j=2,k=1,m;
m=(++i||--j)&&--k;
printf(\"%d, %d, %d, %d\ \",i,j,k,m);
Answer: 0, 1, 0, 0
Question 5:
char str1[20]=\"Hello\",str2[20]=\"World\";
printf(\"%s\ \", strcat(str1,strncpy(str2,str1,3)));
Answer: HelloHelld
