Hi i am john from france.I am a student in IT class, and still a beginner. Could anyone explain this code for me in simple words, and is there any errors in it ?
Hello John
in simple words, this code changes integer numbers from Decimal digit to Binary digit,
like this:
12>>1100
12 = (2^3+2^2+2^0+2^0)
position: 3 2 1 0
1 1 0 0
-----------------------------------------------------------
errors:
Line 08 T[mx] is Correct. it dose not need space
07,08 Declaring 'i','g','T[mx]' before main function make them Global.it means they are constant e.g. in line 18 'i' wouldn't change however we see it change. so both Declaration must be moved to the main function before printf.
10 int main() is Correct.
14 scanf("%d",&n) is Correct form because in line 13 U ask a Number(digit), NOT String(%s).
19 ':' is extra.
24 instead of system ("pause"); write return 0;