answersLogoWhite

0


Best Answer

There are three logical operators in C; AND (&), OR (|), and NOT (^). These are the bitwise versions. The combinatorial versions are &&, , and !.

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How many types of logical operators in c only?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

What operator is a unary operator as it works with only one operand?

Yes, a unary operator is an operator that only has one operand. Examples of unary operators are negative (-), positive (+), increment (++), decrement (--), address of (&), dereference (*), logical not (!), sizeof, one's complement (~), new, and delete.


What are logical operators?

Logical operations involve the use of three operators - NOT, AND and OR. NOT simple negates a value. It uses one operand. For Example - a) Not True (which means, False as True and False are the only possible values) b) Knowing English AND French (means someone who knows both English AND French) c) Knowing English OR French (means someone who knows either English or French).


Is a header file a collection of built in functions that help in writing c programs?

No. There are no built-in functions in C, there are only built-in types and built-in operators for those types. All functions are user-defined, including those defined by the C standard library. There are no user-defined operators in C, but you can implement operators as named functions if required. A header file (*.h file) typically contains a group of related user-defined function and/or user-defined type declarations which can be included in any source file that requires them. Every user-defined function or user-defined type name used by a program must have one (and only one) definition, usually contained in a corresponding source file (*.c file) or library file (*.lib file). Built-in types and their corresponding operators do not require a header file since they are part of the language itself (hence they are built-in).


What is the return type of and operator in c?

There are two AND operators in C, logical AND (&&) and bitwise AND (&). The return type for logical AND is always bool, however logical AND only works when both operands can be implicitly cast to bool. The value 0 is always regarded as being false while all non-zero values are regarded as being true. The return type for bitwise AND is that of the largest of its two operands. For instance, the return type of int & char is int (same as the l-value) while the return type of char & int is also int (same as the r-value).


Heating air only makes it hotter?

That would seem to be a logical truth.

Related questions

Difference between relational and logical operators?

Logical operators don't Compare values they combine Boolean values and produce a Boolean result. Examples of logical operators are && (and), , (or), ! (not). If you have two Boolean values and you combined them with the && operator the result will be (TRUE) only if both values were (TRUE). Relational operators compare two values and produce a Boolean result. Most of the time we use logical operators to combine the results of two or more comparison expressions that use relational operators.


How much schooling do farmers go through?

none only have to have an operators licence to operate a tractor and other types of machinery


What operator is a unary operator as it works with only one operand?

Yes, a unary operator is an operator that only has one operand. Examples of unary operators are negative (-), positive (+), increment (++), decrement (--), address of (&), dereference (*), logical not (!), sizeof, one's complement (~), new, and delete.


How many logical partitions can you create on your harddisk?

60 Logical partitions can be created. Only 26 are reachable in Windows Due to the number of letters in thealphabet.


What are logical operators?

Logical operations involve the use of three operators - NOT, AND and OR. NOT simple negates a value. It uses one operand. For Example - a) Not True (which means, False as True and False are the only possible values) b) Knowing English AND French (means someone who knows both English AND French) c) Knowing English OR French (means someone who knows either English or French).


How many us presidents are ham radio operators?

There's only one US president, and he isn't one.


How many of numbers from 1 to 9 can you create using only four 4'S?

All of them, but it does depend on what operators are allowed.


A basic disk contains 3 logical partitions how many of these partitions can be primary partitions?

A basic disk contains 3 logical partitions, but only one of them can be the primary partition. This is only if the system has enough free space.


A basic disk contains 3 logical partitions how many of these partitions can be marked as active?

Only 1


How many lines of symmetry does a rectangular prism have?

The answer is 8, that's the only logical outcome.


What are logical functions?

A logical or boolean function is one that works with logical or boolean values - values that can only be either true, or false.


Differentiate between ordinary algebra and boolean algebra?

ordinary:-it base all types of laws required for arthmetic operators all outputs are real numbers boolean:- it involves only binary inputs and outs in binary consists only 1,0 as ouputs it involves only two types of laws mostly commutative and associative laws