What's the principle of organising a mass?
-
Specify the direction of the task.
Number. It is necessary to complete the mass according to the following principle: [number of number]=number of number♪
Thank you.
-
I don't remember what x86 battles 0-- senior or junior. In the case of a battle of 0, a younger one, that is, the result will be a two-way representation of the number in reverse:
#include <stdio.h> int main(int argc, char *argv[]) { int in, r[sizeof(int)*8]; int i; scanf("%d", &in); for(i=0; i < sizeof r/sizeof(int); i++, in >>= 1) r[i] = in & 1; for(i=0; i < sizeof r/sizeof(int); i++) printf("%d", r[i]); putchar('\n'); return 0; }
i.e. in the cycle the junior level
in & 1
and move the reference number to the right.