in Technology by
What is the address of operator ( &)?

1 Answer

0 votes
by

It is also a unary operator and gives the address of the operand. According to C standard “The operand of the unary & operator shall be either a function designator or an lvalue that designates an object that is not a bit-field and is not declared with the register storage-class specifier”.

Let see an example,

int data = 0; // declaration of integer variable
&data => Give the address of the data
int *pData ; // declaration of pointer
&pData => Give the address of the pointer

Related questions

0 votes
    Where the address of operator (&) cannot be used?...
asked Jan 18, 2021 in Technology by JackTerrance
+1 vote
    Where the address of operator (&) cannot be used in C Programming?...
asked Nov 9, 2020 in Technology by JackTerrance
0 votes
    Which of these can be returned by the operator &? (a) Integer (b) Boolean (c) Character (d) ... java programming questions and answers pdf, java interview questions for beginners...
asked Oct 28, 2021 in Education by JackTerrance
0 votes
    Which of the following is the truncation division operator in Python? a) | b) // c) / d) %...
asked Dec 31, 2022 in Technology by JackTerrance
0 votes
    In MongoDB, _________ is the operator limits the contents of an array field from the query. (1)$Match (2)$elemMatch (3)$slice...
asked May 23, 2021 in Technology by JackTerrance
0 votes
    What is Indirection or Dereference Operator ( * )?...
asked Jan 22, 2021 in Technology by JackTerrance
0 votes
    Which operator can be used to access union elements if union variable is a pointer variable?...
asked Jan 18, 2021 in Technology by JackTerrance
0 votes
    How does bitwise operator XOR works?...
asked Jan 18, 2021 in Technology by JackTerrance
0 votes
    Which operator can be used to determine the size of a data type or variable?...
asked Jan 18, 2021 in Technology by JackTerrance
0 votes
    Which operator is used to receive the variable number of arguments for a function?...
asked Jan 18, 2021 in Technology by JackTerrance
0 votes
    What is the use of comma operator (,)?...
asked Jan 18, 2021 in Technology by JackTerrance
0 votes
    When to user -> (arrow) operator?...
asked Jan 17, 2021 in Technology by JackTerrance
0 votes
    Does Python have a ternary conditional operator?...
asked Jan 9, 2021 in Technology by JackTerrance
0 votes
    What is Decrement Operator in JAVA?...
asked Dec 21, 2020 in Technology by JackTerrance
...