What is = and == in C language?

Asked by Last Modified  

Follow 2
Answer

Please enter your answer

Tutor for C, Python, Web Dev, AI/ML Basics | 2+ Years Teaching Juniors & Classmates

= is use to assign the value to the variable.It is an assignment operator.where == is use to check if value is equal or not. It is comparison operator.for examplea=5 here 5 is assigned to 'a'a==5 here it check if the value of 'a' which is alreday declared in program is 5 or not.
read more
= is use to assign the value to the variable.It is an assignment operator.where == is use to check if value is equal or not. It is comparison operator.for examplea=5 here 5 is assigned to 'a'a==5 here it check if the value of 'a' which is alreday declared in program is 5 or not. read less
Comments

I am online Quran teacher 7 years

"==" is used to compare two values for equivalence
Comments

C language Faculty (online Classes )

"=" is used to assign a value to a variable. "==" is used to compare two values for equivalence.
Comments

I am a tutor since last 1 year

"==" is used to compare two values for equivalence
Comments

View 2 more Answers

Related Questions

hi sir c progarm codeing how to write sir........
take any C book then u can learn more...
Suryateja
Why should I learn Python over C or C++?
There are definite differences. C++ is a strongly typed language and Python is not. There's no need to declare variables. ... (I generally don't like languages to be dependent on any kind of formatting,...
Sajini
How do I start learning C programming and finish it in one month?
Use a book named "Let us C"by yashwant t kanetkar. Or simply by taking a class from teachers on urbanpro
Pallavi
0 0
8
What is a stream?
Transferring data from one location to another location...
Nilam
Why do we use # in C programming?
In the C programming language, # is used for preprocessor directives. The preprocessor is a program that runs before the compiler and processes special directives that begin with # . These directives allow...
Dhanya
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

C Program-The Odd Loop Demo
/* WAP to print square value of the number entered by user using odd loop*/ //Header Files #include<stdio.h>#include<conio.h> //Main Function void main(){ char another='y'; int num,sq; //...

10 Tips to improve your learning
1. Have a quick revision of topics that you have read in past three days before you start studying a new topic. 2. Make your own notes containing the summary of the topic. 3. Allot proper timing for...

Find out the Output of the following with reason and get C Language Training fess less by 10%
1. void main() { clrscr(); printf(5+"Beautifull"); getch(); } 2. void main() { int a=50; clrscr(); ...


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 >

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 >

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