Đăng Khánh
New member
What is the output of this program?
A. syntax error
B. segmentaion fault
C. run time error
D. none of the mentioned
Code:
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
int main()
{
int ptr;
ptr = (int)malloc(sizeof(int)*10);
return 0;
}
B. segmentaion fault
C. run time error
D. none of the mentioned