Design Element
Comment on "Intro to Memory and Arrays in C"
by Gordon Potter — Sep 13
Hi Scott,

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?

Back to "Intro to Memory and Arrays in C"
Design Element

Copyright © Scott Stevenson 2004-2015