TCS Company Programming Database

#include

int main() {

int i=5;
i=i++ + i++ + i++ + i++ + i++;
printf("%d
",i);
int j=5;
j=++j + ++j + ++j + ++j + ++j;
printf("%d
",j);

return 0;

}

Read Solution (Total 40)

TCS Other Question

There are 1000 pillars in a temple. Three friends Linda, Chelsea and Julia visited that temple. Linda is taller than Chelsea, who is taller than 2 of 1000 pillars. Julia is shorter than Linda. Find the correct sentence?
a) Linda is shorter among them
b) Chelsea is taller than Julia
c) Chelsea is shorter than Julia
d) Cannot determine who is taller between Chelsea and Julia
e) None of these
The average weight of 8 persons is increased by 2.5 kg, When one of them whose weight is 56 kg is
replaced by a new man. The weight of the new man is :
(A) 66 kg
(B) 75 kg
(C) 76 kg
(D) 86 kg