Question 109Asked in BPSC TRE 1.0 (2023) Computer Science Class 11-12

The correct statement for a function that takes pointer to a float, a pointer to a pointer to a char and returns a pointer to a pointer to an integer is

  1. Aint **fun(float **, char **)
  2. Bint *fun(float *, char *)
  3. Cint **fun(float *, char **)
  4. DMore than one of the above
  5. ENone of the above
Show answerHide answer

Correct answer: (C) int **fun(float *, char **)

Explanation

The function takes a float* and a char** and returns an int**, so the correct declaration is int **fun(float *, char **).

From BPSC TRE 1.0 (2023) Computer Science Class 11-12 — Previous Year Paper

This is question 109 of BPSC TRE 1.0 (2023) Computer Science Class 11-12 — Previous Year Paper. See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.