πŸ“Š C Programming
Q. Comment on the following pointer declaration?
Code:
int *p, x;
  • (A) p is a pointer to integer, x is not
  • (B) p and x, both are pointers to integer
  • (C) p is pointer to integer, x may or may not be
  • (D) p and x both are not pointers to integer
πŸ’¬ Discuss
βœ… Correct Answer: (A) p is a pointer to integer, x is not

Explanation: In the above given statement, variable p is a pointer to integer, while x is an integer variable.

Explanation by: Team MCQ Buddy
In the above given statement, variable p is a pointer to integer, while x is an integer variable.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
227
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Team MCQ Buddy
Publisher
πŸ“ˆ
85%
Success Rate