// C program to demonstrate Implicit
// Type Conversion of numeric types
  
#include <stdbool.h>
#include <stdio.h>
  
int main(void)
{
	// Local Declarations
	bool b = true;
    	char c = 'X';
    	float d = 1234.5;
    	int i = 123;
    	short s = 98;
  
    	// Statements
    	printf("bool + char is char:     %c\n", b + c);
    	printf("int * short is int:      %d\n", i * s);
    	printf("float * char is float:   %f\n", d * c);
	  
    	// float demoted to bool
    	b = -d;
  
    	printf("bool = -float:   %d\n", b);

    	return 0;
}

