What is = and == in C language?

Asked by Last Modified  

Follow 1
Answer

Please enter your answer

Experienced and certified computer science tutor

In C,= is assignment operator and == is equality operator that is used to compare two values or expressions.
Comments

solve Physics and math question in shortcut way

Assignment and comparision operation respectively
Comments

Assistant professor in Computee sci Engg , 13 years experience,UGC Net Set qualified

= is assignment operator where u assign some value into variable. Eg a=6; Here we are storing or assigning value 6 into a variable. == Is for comparison ,it will comare two values or variable. Eg a=4 b=3 Result of a==b will be false because they are not equal after comapring.
read more
= is assignment operator where u assign some value into variable. Eg a=6; Here we are storing or assigning value 6 into a variable. == Is for comparison ,it will comare two values or variable. Eg a=4 b=3 Result of a==b will be false because they are not equal after comapring. read less
Comments

View 1 more Answers

Related Questions

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
How do I learn C programming by videos or books?
BOOKS AND PRACTICE by far remain the best way for learning any language ....
Fgrefg
0 0
7
What is the use of header files in C language?
In C language, header files are used to organize and reuse code efficiently 6 Key uses of header files in C language are :1. Function declarations (Prototypes)2. Macro Definitions3. Type Definitions4....
Sachanth
0 0
7
In C/C++, when should you use the comma (,) operator instead of the semicolon (;) statement terminator?
int a=2; b=a; b=a+2; Instead of the above two statements we can write it as b=(a,a+2); The value of b is 4
Thimma
0 0
5
Which websites are best to learn C programming?
Geek for Geeks and programiz etc
Ritu
0 0
5

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

Ask a Question

Related Lessons

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...

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...

Pointers Concept
Every variable has a memory location and every memory location has its address defined which can be accessed using ampersand (&) operator, which denotes an address in memory. Consider the following...

Storage classes in c
Storage classes determine the scope and life time of a variable. Scope is defined as the region over which the defined variable is accessible. Lifetime is the time during which the value of a variable...

Datatypes in C Language
Data types in C Language Data types specify how we enter data into our programs and what type of data we enter. C language has some predefined set of data types to handle various kinds of data that...

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 >

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 >

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 >

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