Which of the following is invalid?

134. Which of the following is invalid?

  1. string str, *ptr=0;
  2. int a, float *f = &a;
  3. int *ptr;
  4. None of the above

Answer: B) int a, float *f = &a;

Explanation:

The 2nd option is invalid because we are trying to initialize the address of the integer variable to a float pointer.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.