Question discussion

Suppose in a C program, the variable j is declared as int *j. What is the meaning of the * operator in this declaration?

358867Medium DSSSB TGT Computer Science 0 replies 0 views
0
Suppose in a C program, the variable j is declared as int *j. What is the meaning of the * operator in this declaration?
  • AAllocating memory to
  • BMakes variable as pointer to an integer
  • CMakes variable as integer to float
  • DAn integer is multiplied by the value contained in
Correct answer: B

Explanation

In a declaration like int *j, the * operator makes j a pointer to an integer (it holds the address of an int).

Discussion 0

Nobody has replied yet. Start the discussion!