First off thanks for these tutorials. They are nice, clean, and concise. Helpful for taking baby steps into the world of C programming.
Quick elementary question about your first example here:
Loops for Processing Arrays
Where do the functions rand() and srand() come from? I read your C tutorial and I would assume that there is a reference in the stdio.h or time.h but when I search both usr/include/stdio.h and usr/include/time.h I can't find them?
Perhaps I am missing something very elemental here? Are these hardcoded into the compiler?
by Gordon Potter — Sep 13
First off thanks for these tutorials. They are nice, clean, and concise. Helpful for taking baby steps into the world of C programming.
Quick elementary question about your first example here:
Loops for Processing Arrays
Where do the functions rand() and srand() come from? I read your C tutorial and I would assume that there is a reference in the stdio.h or time.h but when I search both usr/include/stdio.h and usr/include/time.h I can't find them?
Perhaps I am missing something very elemental here? Are these hardcoded into the compiler?
Thanks,
Gordon