I'm following a book and teaching myself C. Right now I'm trying to use a bitArray to find the # of primes under a specific number. As default, the book gives me a struc and a function starts with:
typedef struct _seg {
int bits[256];
struct _seg *next, *prev;
} seg;
*seg whichseg(int j){
}
However, this function *seg whichseg(int j){
is throwing me an error when i compile. I'm wondering that is it should be seg *
with a star after seg? And what exactly does this function mean, is it making j automatically a seg struct?
Thank you all :-)