What are the problems with this C program? Select two.   #include<stdio.h>   #include<stdlib.h>   int main()   {       int *ptr;       *ptr = 0;       printf("%d\n",*ptr);       *ptr = 1;       printf("%d\n",*ptr);       return 1;   } 多项选择题

A

It reassigns memory too quickly

B

int pointer was not initialized with malloc, so a crash may happen sooner or later

C

It returns 1 for a successful run, while it should return 0 for success by default

D

It prints both 0 and 1 too quickly, without flushing the buffers

登录即可查看完整答案

我们收录了全球超50000道真实原题与详细解析,现在登录,立即获得答案。

更多留学生实用工具

加入我们,立即解锁 海量真题独家解析,让复习快人一步!