C programming is a general-purpose, procedural, imperative computer programming language developed in 1972 by Dennis M. Ritchie at the Bell Telephone Laboratories to develop the UNIX operating system. C is the most widely used computer language. It keeps fluctuating at number one scale of popularity along with Java programming language, which is also equally popular and most widely used among modern software programmers.
Why to Learn C Programming?
C programming language is necessary for students and working professionals to become a great Software Engineer especially when they are working in Software Development Domain. I will list down some of the key advantages of learning C Programming
-C++ is used to develop games, desktop apps, operating systems, browsers, and so on because of its performance.
-After learning C++, it will be much easier to learn other programming languages like Java, Python, etc.
-C++ helps you to understand the internal architecture of a computer, how computer stores and retrieves information.
   -Easy to learn
   -Structured language
   -It produces efficient programs
   -It can handle low-level activities
   -It can be compiled on a variety of computer platforms It can be compiled on a variety of computer platforms
Comparison operators and relational operators
C Tutorial
Comparison operators / elational operators in C Programming
Comparison operators are binary operators that test a condition and return 1 if that condition is logically true and 0 if that condition is false.
Operator | Operator Name | Example | Description |
---|---|---|---|
== | equal to | == | a is equal to b |
< | less than | a<b | a is less than b |
<= | Less than or equal to | a<=b | a is less than or equal to b |
> | Greater than | a>b | a is Greater than b |
>= | Greater than or equal to | a>=b | a is Greater or equal to b |
!= | equal to | a!=b | a is not equal to b |
C Logical Operators
An expression containing logical operator returns either 0 or 1 depending upon whether expression results true or false. Logical operators are commonly used in decision making in C programming.
Operator | Meaning | Example |
---|---|---|
&& | Logical AND. True only if all operands are true | If c = 5 and d = 2 then, expression ((c==5) && (d>5)) equals to 0. |
|| | Logical OR. True only if either one operand is true | If c = 5 and d = 2 then, expression ((c==5) || (d>5)) equals to 1. |
! | Logical NOT. True only if the operand is 0 | If c = 5 then, expression !(c==5) equals to 0. |
Please Watching My Video is Below
No comments:
Post a Comment