TOP 5 funny mistakes C programmers do in the beginning

Revision en1, by mahmud1002, 2016-07-21 21:20:19

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... :)

Tags funny blog

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English mahmud1002 2016-07-21 21:20:19 544 Initial revision (published)