Basic and Advance C Question:

Download Job Interview Questions and Answers PDF

Suggesting that there can be 62 seconds in a minute?

C Programming Interview Question
C Programming Interview Question

Answer:

Q: Why can tm_sec in the tm structure range from 0 to 61, suggesting that there can be 62 seconds in a minute?

A: That's actually a buglet in the Standard. There can be 61 seconds in a minute during a leap second. It's possible for there to be two leap seconds in a year, but it turns out that it's guaranteed that they'll never both occur in the same day (let alone the same minute).

Download C Programming Interview Questions And Answers PDF

Previous QuestionNext Question
Here is a good puzzle: how do you write a program which produces its own source code as output?Was 2000 a leap year?