#include <stdio.h>
int main()
{
char name1[]={'s','a','t','y','a','m','\0',};
printf("%s",name1);
char name2[]="\nsatyam";
printf("%s",name2);
return 0;
}
/*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 ; }
Comments
Post a Comment