UrbanPro

Learn C Language from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors

Search in

What is = and == in C language?

Asked by Last Modified  

Follow 3
Answer

Please enter your answer

solve Physics and math question in shortcut way

= is assignment operator while ==is comparision operator
Comments

C, Python FullStack, Java FullStack Coding Instructor

'=' (Assignment Operator): The single equal sign = is used as an assignment operator. It is used to assign a value to a variable. '==' (Equality Operator): The double equal sign == is used as a relational operator for equality. It is used to compare two values for equality.
read more

'=' (Assignment Operator): The single equal sign = is used as an assignment operator. It is used to assign a value to a variable.

'==' (Equality Operator): The double equal sign == is used as a relational operator for equality. It is used to compare two values for equality.

read less
Comments

My teaching experience 12 years

In C language, '=' is the assignment operator used to assign a value to a variable. On the other hand, '==' is the equality operator used to compare two values for equality. For example, a = 5; assigns the value 5 to variable 'a', while if (x == y) checks if 'x' is equal to 'y'.
Comments

"=" is used to assign the value,"==" is to show equality between values
Comments

Adobe Certified , Microsoft Certified Trainer with 9 years of experience

"=" is used to assign the value. Example: x = 2, then value of x is 2. "==" is to show equality between values, Example x == y, here the value of y equal to x. = is used for assigning value eg- x=3 y=3 == is used for comparing whether the value is equal eg- if(x==y) comparing whether x is equal to y....
Comments

Tutor

= is an assignment operator. Example: a=5 Here, we have assigned the value 5 to the variable a. Double equal sign == is a relational operator. The value of a relational expression is either True or False. Example a=5 b=3 For a==b, the answer is False. That is, it campres two values.
read more

= is an assignment operator. 

Example:

a=5

Here, we have assigned the value 5 to the variable a. 

Double equal sign == is a relational operator. The value of a relational expression is either True or False.

Example

a=5

b=3

For a==b, the answer is False.

That is, it campres two values.

read less
Comments

C language Faculty (online Classes )

In C, = and == serve different purposes: = is the assignment operator, used to assign a value to a variable. == is the equality operator, used to compare two values for equality.
Comments

View 5 more Answers

Related Questions

What is C language?
it is a computer programming language, supporting structured programming, lexical variable scope and recursion, while a static type system prevents many unintended operations
Uday
Is a default case necessary in a switch statement?
NO, default is optional and you can omit it if there is no use of it.
My
Can a functions return more than one value at a time?
With the use of pointers a function can return multiple values.
Lamaan
0 0
7
Is C#, C++, Python, or JS better for game development?
All languages good for gamjng. But you can make 3d games in c# uaing unity software and it's very very interesting to work on it.
Mohit
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

C, Cpp, Java, Python, Javascript Programming Languages
Learning C is as good as Learning a Natural Language(such as English, Hindi, Telugu, Tamil etc) We use Natural Languages to communicate with humans whereas we use Programming Languages such as C, Cpp,...
V

Vamshi

0 0
0

Features Of C Language
Features of C language It is a robust language with rich set of built-in functions and operators that can be used to write any complex program. The C compiler combines the capabilities of an assembly...

Some interview questions for freshers on C language
Q1. What are the two forms of #include? There are two variants of #include. The one is #include and the other one is #include”file”. In general the first form that is #include is used to...

C Program Sample Application
//Standard Library Functions(Header Files used) #include<stdio.h> #include <conio.h> //Main method int main() { // function for clearing screen clrscr(); // function to print the output...
S

Tips of learning Java Language/Other Programming Languages
1.You should know the basic concept: If we talk about programming languages so basic concept are same in all the high level languages. So you should know the basic concept firstly then you can easily understand...
I

ICreative Solution

0 0
0

Recommended Articles

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 >

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 >

Applications engineering is a hot trend in the current IT market.  An applications engineer is responsible for designing and application of technology products relating to various aspects of computing. To accomplish this, he/she has to work collaboratively with the company’s manufacturing, marketing, sales, and customer...

Read full article >

Software Development has been one of the most popular career trends since years. The reason behind this is the fact that software are being used almost everywhere today.  In all of our lives, from the morning’s alarm clock to the coffee maker, car, mobile phone, computer, ATM and in almost everything we use in our daily...

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
X

Looking for C Language Classes?

The best tutors for C Language Classes are on UrbanPro

  • Select the best Tutor
  • Book & Attend a Free Demo
  • Pay and start Learning

Learn C Language with the Best Tutors

The best Tutors for C Language Classes are on UrbanPro

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 55 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 7.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more