Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

how to make an integer value equal to character

cCopy#include<stdio.h>
int main(void)
{
    int number=71;

    char charValue = number+'0';
    printf("The character value is :%c",charValue);

    return 0;
}
Source by www.delftstack.com #
 
PREVIOUS NEXT
Tagged: #integer #equal #character
ADD COMMENT
Topic
Name
5+7 =