What does == mean in c language?

烟雨青岚
Release: 2020-06-15 17:21:48
Original
64960 people have browsed it

What does == mean in c language?

What does == mean in C language?

There is a relational operation in C language operator, == is one of the relational operators, and its main function is used to judge statements. The meaning of

== is to determine whether they are equal. A level-based program flow that executes the next step of the program if the two values ​​are equal.

What does == mean in c language?

Example: if(a==b)

Determine whether a and b are equal. If a is equal to b, then the if statement is established and the following is run. program.

What does == mean in c language?

#if has only two judgment results, true and false. If true, it will be executed, if false, it will be interrupted.

What does == mean in c language?

if(a==b){
pintf("output\n");
}else{
pintf("intput\n");
}
Copy after login

Very simple if two-way selection.

What does == mean in c language?

The program execution result is shown in the figure below.

What does == mean in c language?

Recommended tutorial: "C Language"

The above is the detailed content of What does == mean in c language?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!