- 1

Anybody fix this error..

#include <stdio.h> int main() { int a=10; int y; y = (9 < a ) ? 5: 4; return 0; }

28th Nov 2021, 3:42 AM
Amala Yakin
2 Respostas
+ 4
#include <stdio.h> int main() { int a=10; int y; y = (9 < a ) ? 5: 4; printf ("%d",y); return 0; }
28th Nov 2021, 5:52 AM
A S Raghuvanshi
A S Raghuvanshi - avatar
+ 3
There is no error, the compiler gives a warning because y is not used anywhere. What do you want your program to do?
28th Nov 2021, 4:36 AM
Arun Ruban SJ
Arun Ruban SJ - avatar