output:Code:#include <stdio.h> #include <stdlib.h> int main(void){ int r; r = rand(); printf("1] number: %d", r); r = (r/RANDMAX); printf("2] number: %d", r); return 0; }
i don 't get it. Sometimes this specific error appears and other is does not...Code:ex2.c: In function ‘main’: ex2.c:9: error: ‘RANDMAX’ undeclared (first use in this function) ex2.c:9: error: (Each undeclared identifier is reported only once ex2.c:9: error: for each function it appears in.
what' s the problem guys???