CnUnix

[알림판목록 I] [알림판목록 II] [글목록][이 전][다 음]
[ CnUnix ] in KIDS
글 쓴 이(By): HellCat ((void*)0)
날 짜 (Date): 1994년02월05일(토) 09시00분06초 KST
제 목(Title): 역시 린트


역시..린트 없인 못살아용..

#include <stdio.h>
main()
{
        int a=0, b=3, c=0;

        c= ++a + b + ++a;

        printf("%d\n", c);

        a=0, b=3, c=0;

        printf("%d\n", ++a + b + ++a);
}
zeus:~> lint t.c
(6) warning: evaluation order undefined: a
(12) warning: evaluation order undefined: a

function falls off bottom without returning value
    (13) main       

function returns value which is always ignored
    printf          
[알림판목록 I] [알림판목록 II] [글 목록][이 전][다 음]
키 즈 는 열 린 사 람 들 의 모 임 입 니 다.