ISI 2016 PCB C5
What will be the output of the following C program? If you think it will give a runtime error, you need to mention it. In either case, your answer must include proper justifications without which no credit will be given. #include<stdio.h> main() { unsigned char i, j, a[] = {1, 2, 3, 4, 5} ... j, n); while(j-- != 0) a[0] += n; printf("j = %d, a[0] = %d\n", j, a[0]); }
What will be the output of the following C program? If you think it will give a runtime error, you need to mention it. In either case, your answer must include proper justifications without which no credit will be given. #include<stdio.h> main() { unsigned char i, j, a[] = {1, 2, 3, 4, 5}; int n; i = j = n = ... %d\n", i, j, n); while(j-- != 0) a[0] += n; printf("j = %d, a[0] = %d\n", j, a[0]); }
answer selected
May 9, 2017
in Others
221 views