mahmud1002's blog

By mahmud1002, history, 10 years ago, In English

TOP 5 funny mistakes C programmers do in the beginning ... the reason its funny coz most compiler doesnt count it as a error... rookie coder spend hours to find the problem in their code and then find it and think about kicking themselves... even u might have done one of them in ur early days :P

  1. scanf("%d %d",a,b);

  2. scanf("%c%c%c",&a,&b,&c);

3.scanf("%c",&a); gets(a);

4.if(a=1)printf("YES");

5.sum=b+c; printf("%d",&sum);

tell me if i missed some... :)

  • Vote: I like it
  • -32
  • Vote: I do not like it

| Write comment?
»
10 years ago, hide # |
 
Vote: I like it +17 Vote: I do not like it

6.) make senseless blogs