Posts by juliusczm • 48 points
4 posts
-
0
votes1
answer146
viewsA: Compare date and time
You can convert the two dates to a number format with the function mktime and compare them.
-
1
votes1
answer93
viewsA: Language C, matrix exercise
Man, from what I’ve seen, you’re doing: int matriz[5][5]; int maior = matriz[0][0]; int menor = matriz[0][0]; That is, you are assigning a higher and lower value that can be junk memory. Eventually,…
-
0
votes1
answer68
viewsQ: Doubt about date manipulation using time. h
I am studying C and thinking about a problem I came across the need to study the time library. h. Basically, I would like to calculate the difference between two dates without having to reinvent the…
-
2
votes1
answer107
viewsQ: Pointer arithmetic in C
I am doubtful in a way to know the length of a vector without using sizeof: int n = *(&arr + 1) - arr; It is known that: arr is the type int ( * ) and (&arr + 1) is the type int ( * )[size].…