Notice: Constant WP_MEMORY_LIMIT already defined in /home/javawith/public_html/codesjava.com/wp-config.php on line 107

Notice: Constant WP_MAX_MEMORY_LIMIT already defined in /home/javawith/public_html/codesjava.com/wp-config.php on line 108
Type Casting - CodesJava

CodesJava

Easy learning with example program codes

Type Casting in c


Notice: Undefined variable: footnotelist in /home/javawith/public_html/codesjava.com/wp-content/plugins/latex2html/inc/core.php on line 475

Type casting in C simply means to convert one data type into other. C facilitates with a special operator named (type) which serves the purpose of type casting, where type represents the required data type.

Syntax:

(type) value;

Example:

#include<stdio.h>  
void main()
{  
char value= (char)66;    
printf("Value : %c\n", value );    
}

Output

Value : B
Please follow and like us:
error
Posted in C   








Copyright © 2019 CodesJava DMCA.com Protection Status