[C-prog-lang-l] notes from today (const, enum, typedef, bit ops)
Vladimír Kotal
vlada at devnull.cz
Tue May 9 20:55:22 CEST 2017
Hi all,
the notes and code from today are online:
http://mff.devnull.cz/c-prog-lang/notes/12--May-09/
There are 2 tasks to exercise bit operations at the end.
Also, here are some complex declarations:
int* (*array2[10])(void (*)());
int (*daytab)[13]
void (*f[10]) (int, int)
char (*(*x())[]) ()
char (*(*x[3])())[5]
int *(*(*arr[5])()) ()
void (*bsd_signal(int sig, void (*func)(int)))(int);
char (*(*f())[])();
char (*(*X[3])())[5];
void (*f)(int,void (*)());
char far *far *ptr;
typedef void (*pfun)(int,float);
int **(*f)(int**,int**(*)(int **,int **));
You can use http://linux.die.net/man/1/cdecl to verify your answers.
v.
-------------- next part --------------
HTML attachment scrubbed and removed
More information about the c-prog-lang-l
mailing list