Quick actions

cmd+k|ctrl+k

Navigation

Languages

Implicit & Explict

Snippet info

Language

C

Visibility

public

Author

krishnakanth

Created

2022-11-18T04:26:00.996482Z

Updated

2022-11-18T04:31:54.441606Z

#include <stdio.h>

int main(void) {
    int x = 10;
    float y = 3.14;
    x += y; //y value implicitly converted into integer
    printf("%d\n",x);
    
    int a = 10 ;
    float b = 3.14;
    int c = (int)b + a ;
    printf("%d\n",c);
    
    
    
    return 0;
}
INFO