ISO C forbids forward parameter declaration -



ISO C forbids forward parameter declaration -

when seek compile code:

#include <stdlib.h> #include <stdio.h> void decoupesecondes(int* pointeurheures, int* pointeurminutes, int* pointeursecondes); int main (void){ int sec, min, heu; scanf("%d %d %d", &heu, &min, &sec); decoupesecondes(&heu, &min, &sec); printf("%d heures, %d minutes et %d secondes",heu, min, sec); homecoming 0; } void decoupesecondes(int* pointeurheures, int* pointeurminutes, int* pointeursecondes;){ *pointeurminutes = *pointeursecondes / 60; *pointeursecondes = *pointeursecondes % 60; *pointeurheures = *pointeurminutes/60; *pointeurminutes = *pointeurminutes % 60; }

i got error: warning: iso c forbids forwards parameter declarations [-wpedantic] , don't understand why...

extra semicolon

void decoupesecondes(int* pointeurheures, int* pointeurminutes, int* pointeursecondes;){ // ... ... ... ... oops ^

c

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -