example of relational qperators in c July 15, 2020 #include <stdio.h>int main(){ int a=8 ,b=3; printf("%d\n",a==b); printf("%d\n",a!=b); printf("%d\n",a<b); // 0 means False & 1 means True printf("%d\n",a>b); printf("%d\n",a<=b); printf("%d\n",a>=b);} Share Get link Facebook X Pinterest Email Other Apps Labels c programming Share Get link Facebook X Pinterest Email Other Apps Comments
example of typecasting in c July 18, 2020 /*Type Casting in C Typecasting allows us to convert one data type into other. */ //simple example to cast int value into the float. #include <stdio.h> int main (){ float f = ( float ) 9 / 4 ; printf ( "f : %f \n " , f ); return 0 ; } Read more
Comments
Post a Comment