64,691
社区成员
发帖
与我相关
我的任务
分享
main(){
int i=10, j;
i = j; /* UMC: j is uninitialized, copied into i */
printf("i = %d\n", i); /* UMR: Using i, which has junk value */
}
lint 060.c
(7) warning: variable may be used before set: j
argument unused in function
(4) argc in main
(4) argv in main
function returns value which is always ignored
printf
mymtom@t1000:src/2009/060$ cat 060.c
#include <stdio.h>
int
main(int argc, char *argv[])
{
int i = 10, j;
i = j; /* UMC: j is uninitialized, copied into i */
printf("i = %d\n", i); /* UMR: Using i, which has junk value */
return 0;
}
void main(){
char* p =new char[10];
std::cout<<p[10]<<std::endl;
}