[ create a new paste ] login | about

Link: http://codepad.org/lib6mtO3    [ raw code | output | fork ]

C++, pasted on Jan 12:
1
2
3
4
5
6
7
8
#include <stdio.h>

int main(){
    int k = 10;
    int b = --k + --k;
    printf("b = %d, k = %d", b, k);
    return 0;
}


Output:
1
2
3
cc1plus: warnings being treated as errors
In function 'int main()':
Line 5: warning: operation on 'k' may be undefined


Create a new paste based on this one


Comments: