What will be the output of the following program, for k=8?
#include<stdio.h>
void main()
{
int i= 2, j=3, k;
scanf("%d",&k);
switch(k%2)
{
case 5<4:printf("k is even"); break;
case 10>9: printf("k is odd"); break;
default :printf("end");
}
}
Doubt: 8%2=0
then which case it will print .?
or directly it will print k is even bcs of mod=0