Which one of the following operators is a unary operator in c language? & && sizeof() <<
Question
Which one of the following operators is a unary operator in c language?
&
&&
sizeof()
<<
Solution
The unary operator in C language from the given options is sizeof().
Here's why:
- & is a binary operator, used for bitwise AND operation or for getting the address of a variable.
- && is a binary operator, used for logical AND operation.
- sizeof() is a unary operator, used to get the size of a variable or data type.
- << is a binary operator, used for bitwise left shift operation.
So, the unary operator from the given options is sizeof().
Similar Questions
Which one of the following operators is a unary operator in c language? && << & sizeof()
In C programming language, which of the following operator has the highest precedence?Answer areaa) Unary +b) *c) >=d) = =
Understanding Unary operators#include <stdio.h>void main() { int a = 10, b; b = a++ + ++a; printf("%d %d\n", a, b);}What is the a = b =
Which of the following is not a bitwise operator in C?
which operator takes only integers as operands?
Upgrade your grade with Knowee
Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.