M
Mark Bluemel
Don said:"sizeof data" == syntax error, "sizeof(data)" == correct syntax.
Before I posted the question I wrote this program :-
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
int main(void) {
unsigned char data[255];
memset(data,~0,sizeof data);
return EXIT_SUCCESS;
}
And compiled it with
gcc -Wall -ansi -pedantic bitset.c -o bitset
I repeat my question - "What syntax errors?".
You and Ivan might wish to read up on the syntax of the sizeof operator
before commenting further - try
http://tigcc.ticalc.org/doc/keywords.html#sizeof