Write a program in c to type casting implicit explicit
Program:
#include<stdio.h> #include<conio.h> void main() { int x=10; float y=10.4; int z; float w; z=x+y;//implicit w=(float)x+y;// explicit printf(“%d\n”,z); printf(“%f”,w); getch(); }
Output:
20 20.400000
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
Program:
Output:
need an explanation for this answer? contact us directly to get an explanation for this answer