you could have used command line parameters to create a calculator, it might make the code much simpler
Type: Posts; User: stormtrooper86
you could have used command line parameters to create a calculator, it might make the code much simpler
Yes, argc and argv are only used as parameters of main and sent to the program via the command line, which is pretty cool when working in a DOS-based environment. So, when you type the following in...
#include <stdio.h>
main()
{
----------int i;
----------scanf("%d", &i);
----------printf("%d%d", i&~0x33, (i>>2)&033);
}
How does this work. For example, if 66 is entered, it writes...