main()
{
int i=-1;
+i;
printf("i = %d, +i = %d \n",i,+i);
}
what's the output??
Answer:
i = -1, +i = -1
Explanation:
Unary + is the only dummy operator in C. Where-ever it comes you can
just ignore it just because it has no effect in the expressions (hence the
name dummy operator).
Oct 26, 2010
Oct 25, 2010
What is the relation?
A father is 4 times his son's age. And in 30 years son's age will be half of his father's age. How old are the father and son now???
Answer:
Son's age : 15
Father's age : 60
Explanation:
The ratio of the father and son's age is now 4 to 1 and 30 years from now it will be 2 to 1. The period of thirty years equals the difference of the two ratios or 2 to 1. Therefore, 30*2 = 60, the father's age and (1/2) * 30 = 15, the son's age.
Answer:
Son's age : 15
Father's age : 60
Explanation:
The ratio of the father and son's age is now 4 to 1 and 30 years from now it will be 2 to 1. The period of thirty years equals the difference of the two ratios or 2 to 1. Therefore, 30*2 = 60, the father's age and (1/2) * 30 = 15, the son's age.
Find out no. of days.
A is thrice as good as workman as B and therefore is able to finish a job in 60 days less than B. Working together, they can do it in??
Answer:
| 45 | (or)22 | 1 | days. |
| 2 | 2 |
Explanation:
Ratio of times taken by A and B = 1 : 3.
The time difference is (3 - 1) 2 days while B take 3 days and A takes 1 day.
If difference of time is 2 days, B takes 3 days.
| If difference of time is 60 days, B takes | 3 | x 60 | = 90 days. | ||
| 2 |
So, A takes 30 days to do the work.
| A's 1 day's work = | 1 |
| 30 |
| B's 1 day's work = | 1 |
| 90 |
| (A + B)'s 1 day's work = | 1 | + | 1 | = | 4 | = | 2 | ||
| 30 | 90 | 90 | 45 |
| 45 | = 22 | 1 | days. | |
| 2 | 2 |
Oct 24, 2010
What is the journey length?
A train travels at an average speed of 40kmph to reach its destination. But at d speed of 35kmph it reaches 15min late. wat's the journey length?
Answer:
70km
Answer:
70km
Oct 23, 2010
What is the relation?
A girl introduces a boy that he is my father's mother's son-in-law's son. How the girl related to the boy?
Answer:
Cousin
Answer:
Cousin
Oct 22, 2010
Find out the next no.
Try this...
9 = 4, 21 = 9, 22 = 9, 24 = 10, 8 = 5, 7 = 5, 99 = 10, 100 = 7, 16 = ?, 17 = ?
Answer:
16 = 7
17 = 9
Explanation:
The numbers on the right hand side signifies the number of letters in the spelling of the numbers on the left hand.
Eg: 16(Sixteen) = 7
17(Seventeen) = 9
9 = 4, 21 = 9, 22 = 9, 24 = 10, 8 = 5, 7 = 5, 99 = 10, 100 = 7, 16 = ?, 17 = ?
Answer:
16 = 7
17 = 9
Explanation:
The numbers on the right hand side signifies the number of letters in the spelling of the numbers on the left hand.
Eg: 16(Sixteen) = 7
17(Seventeen) = 9
Oct 21, 2010
How many times will it flash??
Answer:
451 times.
Explanation:
There are 60 minutes in an hour.
In ¾ of an hour there are (60 * ¾) minutes = 45 minutes.
In ¾ of an hour there are (60 * 45) seconds = 2700 seconds.
Light flashed for every 6 seconds.
In 2700 seconds 2700/6 = 450 times.
The count start after the first flash, the light will flashes 451 times in ¾ of an hour.
Who was the second?
5 boys were climbing a hill. J was following H. R was just ahead of G. K was between G & H. They were climbing up in a column.Who was the second?
Answer:
G.
Explanation:
The order in which they are climbing is R – G – K – H – J
What is the relation?
Introducing a boy, a girl said, "He is the son of the daughter of the father of my uncle." How is the boy related to the girl?
Answer:Brother
Explanation:
The father of the boy's uncle → the grandfather of the boy and daughter of the grandfather → sister of father.
Explanation:
The father of the boy's uncle → the grandfather of the boy and daughter of the grandfather → sister of father.
Oct 19, 2010
How many times do the hands of a clock coincide in a day?
How many times do the hands of a clock coincide in a day?
Answer:
22
Explanation:
The hands of a clock coincide 11 times in every 12 hours (Since between 11 and 1, they coincide only once, i.e., at 12 o'clock).
AM
12:00
1:05
2:11
3:16
4:22
5:27
6:33
7:38
8:44
9:49
10:55
PM
12:00
1:05
2:11
3:16
4:22
5:27
6:33
7:38
8:44
9:49
10:55
The hands overlap about every 65 minutes, not every 60 minutes.
The hands coincide 22 times in a day.
Answer:
22
Explanation:
The hands of a clock coincide 11 times in every 12 hours (Since between 11 and 1, they coincide only once, i.e., at 12 o'clock).
AM
12:00
1:05
2:11
3:16
4:22
5:27
6:33
7:38
8:44
9:49
10:55
PM
12:00
1:05
2:11
3:16
4:22
5:27
6:33
7:38
8:44
9:49
10:55
The hands overlap about every 65 minutes, not every 60 minutes.
The hands coincide 22 times in a day.
Subscribe to:
Posts (Atom)