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 the benefit of using an enum rather than a #define constant?
#define is a symbolic constant. symbolic constants are uppercase letters. symbolic constants above the main() function. symbolic constants are not terminated with semicolon. symbolic constants must define using #define preprocessor directive.
Basundhara
0 0
7
How do I learn C programming easily?
focus on hands-on practice by writing, running, and debugging code.
Altaf
0 0
5
What is the difference between n=1 and n==1 in the C language?
'=' is ASSIGNMENT operator , where as '==' is COMPARISON operator. int a=7; assigns the variable a an integer value 7 , where as a==7; checks if the VALUE of a is EQUAL to 7.
Soujanya
0 0
8
What are pointers in C language?
a variable that stores the memory address of another variable
Sanjeevani
0 0
6

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

Ask a Question

Related Lessons

Facts about C language
C programming language was developed in 1972 by Dennis Ritchie at AT&T Bell Labs. It was developed to overcome the problems of languages such as B, BPCL. It was developed to write the Unix operating...

Necessity of Theory and Practical in Computer Science.
Upon studying a subject both theory and practical are important. Usually many schools concentrate more on theory and the marks not on the practical. Other and opposite kind of people prefer practical...

C for Begginers
C is an procedure oriented programming language. For any begginer the word program is new. Program: Set of instructions to be followed by machine or computer. Instruction Examples: Arithmetic instruction...

Java and C trainer
Always think any conspect with real-time example like Object -- object must have states and behaviour then only we will call that thing is Object like fan is Object (rotating,color)

C Program-Prime Number
/*WAP to print a number entered by the user is prime or not*/ //Header files #include<stdio.h>#include<conio.h> //Main function void main(){ int num,i; //Function for clearing screen clrscr();...

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