answersLogoWhite

0

In C we use & operator while giving address of some variable to some pointer variable. & operator is also used in scanf().

User Avatar

Wiki User

14y ago

What else can I help you with?

Continue Learning about Engineering

How do you check address of char variable?

Use the address-of operator: char c=32; // space character std::cout<<&c<<std::endl;


Who is the address operator?

The address operator, often represented by the ampersand symbol (&) in programming languages like C and C++, is used to retrieve the memory address of a variable. By applying the address operator to a variable, you can obtain a pointer that points to the location in memory where that variable is stored. This is essential for pointer manipulation and dynamic memory management in these languages.


What is the function of symboland in C programming?

The symbol and (ampersand, &) in C and C++ programming is the bitwise inclusive or operator. If there are two ampersands (&&) it is a relational inclusive or operator. As a unary operator, it means to take the address of something. In C++, it can also be overridden in a class method to mean nearly anything else.


What is indirection operator?

The indirection operator, typically represented by the asterisk (*) in languages like C and C++, is used to access the value at a specific memory address referenced by a pointer. When you dereference a pointer using the indirection operator, you retrieve or manipulate the data stored at that pointer's address. This operator is essential for working with dynamic memory and data structures like linked lists and trees.


Explain the Difference between bitwise operator ' and ' and address operator ' and ' of pointer?

The bitwise logical operator and (&) calculates the bitwise logical and of two integral values. It is a binary operator.The address of (&) operator returns the address of the value to its right. It is a unary operator.The distinction between the two is one of context. The logical and operator will follow (and be preceeded by) a value, while the address of operator will follow an operator.

Related Questions

How do you check address of char variable?

Use the address-of operator: char c=32; // space character std::cout<<&c<<std::endl;


Use of scope resolution operator in C programming?

:: operator can not be used in C.


What is the memory management operator in c plus plus?

There is no memory management operator in C++ -- it is an unmanaged language. You use the C++ new operator to allocate memory, and use the C++ delete operator to release previously allocated memory.


Who is the address operator?

The address operator, often represented by the ampersand symbol (&) in programming languages like C and C++, is used to retrieve the memory address of a variable. By applying the address operator to a variable, you can obtain a pointer that points to the location in memory where that variable is stored. This is essential for pointer manipulation and dynamic memory management in these languages.


What is the operator of power in c plus plus?

There is no "power" operator in C or C++. You need to the use the math library function pow().


What is the function of symboland in C programming?

The symbol and (ampersand, &) in C and C++ programming is the bitwise inclusive or operator. If there are two ampersands (&&) it is a relational inclusive or operator. As a unary operator, it means to take the address of something. In C++, it can also be overridden in a class method to mean nearly anything else.


It is required to use an address operator when you accept an input for a string?

No.


What is the purpose and functionality of the address operator in C?

The address operator in C is denoted by the symbol "" and is used to retrieve the memory address of a variable. This allows programmers to access and manipulate the memory location of a variable directly, enabling more efficient and precise control over memory management in their programs.


What is indirection operator?

The indirection operator, typically represented by the asterisk (*) in languages like C and C++, is used to access the value at a specific memory address referenced by a pointer. When you dereference a pointer using the indirection operator, you retrieve or manipulate the data stored at that pointer's address. This operator is essential for working with dynamic memory and data structures like linked lists and trees.


Why are there 2 plus sign in c plus plus and Why not a single plus sign?

In C and in C++, the ++ operator means to increment. C++ was intended to be the next version, i.e. the incremental next step, of C, hence the use of the ++ operator.


Why should you have to use comparison operator overloading in pairs in c?

You cannot overload operators in C. This is a C++ thing only.


What are the basic operator in turbo c?

+ += - -= * *= / /= % %= = == != <= >= & && | ^ ~ << <<= >> >>= , [] () are the basic operator in TURBO C