Name:
Anonymous
2010-07-24 16:42
int a;
what is the type of "&a" ?
Name:
Anonymous
2010-07-24 16:58
Int -> Int. It's a partially applied binary and function that takes another int and will return an int.
Name:
Anonymous
2010-07-24 17:21
1
char *a = "anus";
what is the type of *a ?
2
uint32_t *(*a)['a'];
what is the type of a ?
3
(void *)(*a)()
what is the type of a ?
4
int a = 5;
int *b = a;
a = a/*b;
what is the value of a ?
5
struct a {
char a :4;
} a;
what is the type of a->a ?
Name:
Anonymous
2010-07-24 17:46
>>1
int *
>>11
1.
char
2.
uint32_t *(*)['a']
3.
void *(*)()
4. doesn't compile due to unterminated comment.
5.
char
Name:
Anonymous
2010-07-24 18:03
>>11-13
5. is pretending
a is a pointer when it isn't
Name:
Anonymous
2010-07-24 18:08
&a is ptr_diff_t type(typically int32 or int64).
Name:
Anonymous
2010-07-24 18:19
5.2
struct a {
char a :4;
} a;
what is the type of a.a ?
Name:
Anonymous
2010-07-24 22:24
>>19
C. You get an F for responding, but an A for saging.
Name:
Anonymous
2010-07-25 16:28
>>23
That's not a proper type!
Name:
Anonymous
2010-07-25 16:34
>>26
Yes it is! It's a
char made up of 4 bits. A nybble, if you will.