Which of the following is used for dynamically allocating memory?
Correct Answer: malloc() and calloc()
Explanation:
Note: This Question is unanswered, help us to find answer for this one
C Programming Skill Assessment
Your Skill Level: Poor
Retake Quizzes to improve it
More C Programming MCQ Questions
Output of the following code? void myFunction(int foo[2][3]) { foo[0][1] = 5; int i = 0, j = 0; for (i = 0; i < 2; i++) for (j = 0; j < 3; j++) printf('%d ', foo[i][j]); } int main() { int foo[2][3] = {0}; myFunction(foo); return 0; }
What will happen if in a C program you assign a value to an array element whose subscript exceeds the size of array?
Output of the given program? int main() { int i =1, j=1; for ( ; ; ) { if ( i > 5 ) break; else j += i--; Printf ( '%d\n', j ); i += j; j= j+7; } return 0; }
Output of the given program. #include main() { struct b { int on:1; }; struct b v = [1]; printf('%d\n', v.on); }
________ can be used as pointers.
Which is/are the correct signature/s of main with command line arguments?
Output as a result of the following code snippet? #define Name Manish main() { printf('My name''Name'); }
By which file function you can position the file pointer in accordance with the current position?
Which function will convert a string into a double precision quantity?
Output of the following code snippet? void main() { char arr1[] = 'REGALINT'; printf('%d,',strlen(arr1)); printf('%d',sizeof(arr1)); }