GATE CSE C Programming Practice Test – Data Types & Operators | Set 1

Questions 41-45 of 100

Your score 0/100 0 answered
Correct 0 Incorrect 0 Unanswered 100 Accuracy 0%

Question 41

MCQ · Single Correct 1 mark

What does 'malloc(10 * sizeof(int))' return if dynamic memory allocation succeeds?

Answers for question 41

Question 42

MCQ · Single Correct 1 mark

How does 'calloc(n, size)' differ from 'malloc(n * size)'?

Answers for question 42

Question 43

MCQ · Single Correct 1 mark

What is a dangling pointer in C?

Answers for question 43

Question 44

MCQ · Single Correct 1 mark

What is the correct declaration for a function pointer 'fptr' targeting a function taking two ints and returning float?

Answers for question 44

Question 45

MCQ · Single Correct 1 mark

Consider 'int **p;'. What does variable 'p' represent?

Answers for question 45
Scroll to Top