a) x=(int*)malloc(10);
b) x=(int*)malloc(10,sizeof(int));
c) x=malloc(int 10,sizeof(int));
d) x=(int*)malloc(10*sizeof(int));
Suppose we have a one dimensional array, named ‘x’, which contains 10 integers. Which of the following is the correct w
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Suppose we have a one dimensional array, named ‘x’, which contains 10 integers. Which of the following is the correct w
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!