2
Assignment is simple to explain: write the shortest code you need to determine whether an executable binary program supplied as parameter is 32 or 64 bits.
If there is a different kind of bitness, you can also do for it, but is not mandatory.
What I really don't want is telling me you support other bitnesses and after I get 32 or 64 as a result.
Valid outputs for 32:
32
32bit
32bits
32 bit
32 bits
The same pattern for 64.
No accepted answer.
@Pandacoder: Choose one platform and indicate for what one you have done it. – sergiol – 2018-04-12T23:30:41.113
@fəˈnɛtɪk: I suggest something like a
bitness program.exe
command line, wherebitness
is a call to the code you wrote, andprogram.exe
is the binary you just want to evaluate how many bits it is. BTW, great nick! – sergiol – 2018-04-12T23:39:00.907