Knowee
Questions
Features
Study Tools

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()

<<

🧐 Not the exact question you are looking for?Go ask a question

Solution

The unary operator in C language from the given options is sizeof().

Here's why:

  1. & is a binary operator, used for bitwise AND operation or for getting the address of a variable.
  2. && is a binary operator, used for logical AND operation.
  3. sizeof() is a unary operator, used to get the size of a variable or data type.
  4. << is a binary operator, used for bitwise left shift operation.

So, the unary operator from the given options is sizeof().

This problem has been solved

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?

1/3

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.