Company: Tech Mahindra Ltd

C-Test Paper

1. #include
* What is wrong in the following problem
main() {
int i,j;
j = 10;
i = j++ – j++;
printf(“%d %d”, i,j);
}
ans: 0, 12

2.#include
* What is the output of the following problem
main() {
int j;
for(j=0;j