0
why is it giving n??
#include <iostream> using namespace std; int main() { unsigned int i=2; signed char c=-2; printf("%d %d",c,i); if (i>c) printf("y"); else if(i<c) printf("n"); return 0; }
2 Antworten
+ 4
same question 👇🏿
https://stackoverflow.com/questions/5087992/unsigned-int-and-signed-char-comparison#:~:text=The%20rank%20of%20long%20long,signed%20char%20and%20unsigned%20char%20.
+ 1
thanks:)