Q. What is the correct way to allocate memory for an array of 10 integers using calloc()?

कॉलोक() का उपयोग करके 10 पूर्णांकों की सरणी के लिए मेमोरी आवंटित करने का सही तरीका क्या है?

A
int *arr = calloc(10);
B
int arr = (int)calloc(10, sizeof(int));
C
int arr = calloc(10, int);
D
int *arr = calloc(sizeof(int), 10);

Explanation

Explanation will be available soon. Please stay tuned.

व्याख्या जल्द ही उपलब्ध होगी। कृपया बने रहें।

Invest in Future Achievers

Your support helps keep Exam Achiever 100% free for students preparing for exams.

Thanks for your support!

Comments

Leave a Comment