What is meaning of & in c language?

Asked by Last Modified  

Follow 1
Answer

Please enter your answer

I am a tutor since last 1 year

In the C family of languages, &x means “the address of x” and *y means “the value at the address y”.
Comments

In the C language, the ampersand &symbol has two primary meanings: the address-of operator and the bitwise AND operator.
Comments

IT Corporate Trainer with 9 years of experience in Edu tech

In C language, the & symbol has two main meanings depending on how it’s used: 1. Address-of Operator When used in front of a variable, & gives the memory address of that variable. Example: cCopyEditint x = 10; printf("%p", &x); // prints the memory address of x...
read more
In C language, the&symbol hastwo main meaningsdepending on how it’s used: 1. Address-of Operator When used in front of a variable,&gives thememory addressof that variable. Example: cCopyEditint x = 10; printf("%p", &x); // prints the memory address of x ✅Used to pass variables by referenceor for pointer operations. 2. Bitwise AND Operator When used between two values,&performs abitwise AND operation— it compares each bit of two integers and returns 1 only if both bits are 1. Example: cCopyEditint a = 6; // 0110 in binary int b = 3; // 0011 in binary int result = a & b; // result = 2 (0010) ✅Used for low-level operations, masking bits, etc. read less
Comments

I am online Quran teacher 7 years

the address-of operator and the bitwise AND operator.
Comments

C language Faculty (online Classes )

The Address Operator in C is a special unary operator that returns the address of a variable. It is denoted as the Ampersand Symbol ( & ). This operator returns an integer value which is the address of its operand in the memory.
Comments

View 3 more Answers

Related Questions

What is C language used for?
C language is a versatile programming language commonly used for system programming, developing operating systems, embedded systems, and creating various applications ranging from game development to scientific...
Anil
0 0
5
What is important topics in C-language for interviews???
Functions, Arrays , String, pointers , structures
Gayu
Can a file other than a .h file be included with #include?
yes .h -- is just for our understanding that its header file, you are free to put any filename and extention.
Pankaj
0 0
7
What is the most efficient way to store flag values?
A flag is a value used to make a decision between two or more options in the execution of a program. Efficiency in this case is a tradeoff between size and speed. The most memory-space efficient way to...
Deepak
0 0
6
What is the difference between #include and #include "file" ?
#include is meant for including standard library files, where as #include "" is for the local/ custom header files.
Kajol

Now ask question in any of the 1000+ Categories, and get Answers from Tutors and Trainers on UrbanPro.com

Ask a Question

Related Lessons

C-Program Swapping Contents Of Variables Using Function [Call By Reference Method]
//Header Files #include#include // User defined functions swap with 2 pointer variables passed as an argument list void swap(int*i,int*j){ // Local variable temp int temp; // swapping contents using...

C Program-Upper Case Demo
/*WAP to print the character entered by user in upper case*/ //Header files #include<stdio.h>#include<conio.h> //Main function void main(){ char ch; //Function for clearing screen clrscr(); ...

Pro learners tip for C language
First get the concept of algorithm before heading to write your first program.

An Interesting discussion about malloc( ) and calloc( )
What are malloc( ) and calloc( )? Simply putting they are the predefined functions in C language. Malloc( ) and calloc( ) are two such functions which are used for more or less identical purpose and...

How to write shared library program using C Programming?
Library Name : hellofilename : hello.c#include void Hello(){ printf("Hello World .. How are you 1\n");}======================================Header File:hello.h#ifndef __HELLO_H#define __HELLO_Hvoid Hello(void);#endif===============================Application...

Recommended Articles

Lasya Infotech is a Hyderabad based IT training institute founded in 2016 by O Venkat. Believing in his innovation, passion and persistence and with a diverse blend of experience, he started his brainchild to deliver exemplary professional courses to aspiring candidates by honing their skills. Ever since the institute envisions...

Read full article >

Brilliant Academy is one of the reputed institutes for B.Tech tuition classes. This institute is specialised in delivering quality tuition classes for B.E, Engineering - all streams and Engineering diploma courses. Incorporated in 2012, Brillant Academy is a brainchild of Mr Jagadeesh. The main motto of the academy is to...

Read full article >

Business Process outsourcing (BPO) services can be considered as a kind of outsourcing which involves subletting of specific functions associated with any business to a third party service provider. BPO is usually administered as a cost-saving procedure for functions which an organization needs but does not rely upon to...

Read full article >

Microsoft Excel is an electronic spreadsheet tool which is commonly used for financial and statistical data processing. It has been developed by Microsoft and forms a major component of the widely used Microsoft Office. From individual users to the top IT companies, Excel is used worldwide. Excel is one of the most important...

Read full article >

Looking for C Language Classes?

Learn from the Best Tutors on UrbanPro

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you