#include typedef struct { int heure; int minute; int seconde; } horaire; void afficherHoraire(horaire h) { printf("%02d:%02d:%02d",h.heure,h.minute,h.seconde); } horaire creerHoraire(int secondes) { horaire h = { secondes / 3600,(secondes / 60) % 60,secondes % 60 }; return h; } void main(void) { horaire h = { 11,6,44 }; afficherHoraire(h); printf("\n"); afficherHoraire(creerHoraire(45321)); printf("\n"); }