Hi
I had the structure TIME:I initialized the variable timenow of type TIME as:Code:struct TIME {int h, m, float s;};
The instructor deducted the marks for this initialization with the reason that I should have declared it this way:Code:TIME timenow; timenow.h = 2; timenow.m = 5; timenow.s = 30;
But is my initialization incorrect? Does it initialize the variable? Please guide me. Thanks.Code:TIME timenow = { 2 , 5 , 30};