Correct Answer: calloc()
Explanation:
Note: This Question is unanswered, help us to find answer for this one
Programming With C Skill Assessment
Your Skill Level: Poor
Retake Quizzes to improve it
More Programming With C MCQ Questions
What would be printed on the standard output as a result of the following code snippet? main() { char *pmessage = 'asdfgh'; *pmessage++; printf('%s', pmessage); return 0; }
What would be printed on the standard output as a result of the following code snippet? #define max(a, b)((a) > (b)?(a):(b)) main() { int a=4, c = 5; printf('%d ', max(a++, c++)); printf('%d %d\n', a,c); }
What would be printed on the standard output as a result of the following code snippet? main() { int a[5] = {1,4,5,6,9}; printf('%d\t', *a); //Line 1 printf('%d', *++a); //Line 2 return 0; }
What will happen when the following code is executed? void main() { char arr1[] = 'REGALINT'; char arr2[10] = 'REGALINT'; printf('%d,',sizeof(arr1)); printf('%d',sizeof(arr2)); }
What will be printed on the standard output as a result of the following code snippet? void main() { int arr[5]={1,2,3,4,5}; printf('%d\n', *(arr+4)); }
Which comparison statement will be true if an integer is 16 bits and a long is 32 bits on a machine?
What will be printed on the standard output as a result of the following code snippet? void main() { char arr[] = {'R','A','M','\0'}; printf('%d',strlen(arr)); }
What will be printed on the standard output as a result of the following code snippet? void main() { char arr[] = {'R','A','M'}; printf('%d',strlen(arr)); }
Which standard function is used to deallocate memory allocated by the malloc() function?
What would be printed on the standard output as a result of the following code snippet? char i = 'A'; char *j; j = & i; *j = *j + 32; printf('%c',i);