Thanks for the link. What I'm failing to interpret is if discarding or not the & in sizeof &a is an implementation defined behavior.
Joey.
Type: Posts; User: josemariasola
Thanks for the link. What I'm failing to interpret is if discarding or not the & in sizeof &a is an implementation defined behavior.
Joey.
OK, that's right for MS, but does that also goes for Borland?
Maybe I'm beeing a little naive, but I carefully configured both, Borland and MS, compilers to conform to ANSI C 90 and to emit all...
>>I believe that the Borland and MS output you see is incorrect.
>As do I. There's no logical interpretation of the standard that could produce those results.
But is it possible that both...
I made a beginners mistake. What I really got in the third one is 100, not 4.
printf("%d\n", sizeof a);
But the one I don't understand is the last one.
printf("%d\n", sizeof &a);
I get the...
Hello everyone. I'm trying to find out the size of some expressions.
#include <stdio.h>
int main(void){
char a [100] = {0};
char (*p)[100] = &a;
printf("%d\n", sizeof ...