+ 12
What happens if we compare an int with char ?? Explain the following program.
#include<stdio.h> int main() { unsigned int i = 23; signed char c = -23; if (i>c) printf("yes\n"); else if(i<c) printf("No\n"); printf("%d",i+c); } Output : No 0
3 Respostas
+ 1
The char may get converted to an unsigned int and become 233.
0
You char is still a number