OT kviz z C (trocha perverzny)

Pavel Troller patrol na sinus.cz
Neděle Září 19 18:34:53 CEST 2010


> Co robi tento riadok v programe v jazyku C?
> 
> a = b<:2:>;
> 
> wek

V gcc robi zda se to same, jako a = b[2]; - see:

$ cat test.c

#include <stdio.h>

int main(void) {

  int a,b[10];

  b[2]=333;
  a = b<:2:>;

  printf("a=%d\n",a);

}

$ gcc -o test -Wall test.c
test.c: In function 'main':
test.c:13: warning: control reaches end of non-void function
$ ./test
a=333



Další informace o konferenci Hw-list