+ 1

What is difference between signed int and int in embedded point of view of c?

30th Jan 2021, 10:18 PM
Naresh Kumar
Naresh Kumar - avatar
5 odpowiedzi
+ 3
Generally int on its own refers to signed int. An unsigned int on the other hand doesn't represent negative numbers.
30th Jan 2021, 11:15 PM
Sonic
Sonic - avatar
+ 3
Generally no difference between int and signed int.
31st Jan 2021, 1:54 AM
Sonic
Sonic - avatar
+ 1
int is signed by default so there is no difference. It does make sense for a char (which is either signed or unsigned by default) but for int it is redundant.
30th Jan 2021, 11:46 PM
Mike A
Mike A - avatar
0
I asked difference between signed int and int. Not signed int and unsigned int
30th Jan 2021, 11:31 PM
Naresh Kumar
Naresh Kumar - avatar
0
What is the difference between this question and the question linked below? https://www.sololearn.com/Discuss/2647202/?ref=app It was answered correctly in both places. Naresh Kumar would you be willing to clarify why you suspect int is not the same as signed int?
31st Jan 2021, 4:49 AM
Brian
Brian - avatar