Question PRG-C-0006
EasyWhat does the & operator return when applied to a variable, as in &x?
- A.
The address of x
- B.
A copy of x
- C.
Show answer and explanation
Answer: A
&x gives a pointer to x; *p reads the value at a pointer.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
C question
What does the & operator return when applied to a variable, as in &x?
The address of x
A copy of x
Answer: A
&x gives a pointer to x; *p reads the value at a pointer.
The value of x
x AND 1