Singned = signed int?

why is signed x=5; a valid statement. we didn’t declare x’s data type.

Hello @shaswat.tripathi_da18,

The following data modifiers have default type as int:

  1. Signed
  2. Unsigned
  3. Short
  4. Long

You can use 1. and 2. with char also. But, you have explicitly specify it.

Hope, this would help.
Give a like, if you are satisfied.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.