Answers for "int in char c++"

C++
0

c++ char it is a number

#include<ctype.h>
--------
char c = '1';
bool result = isdigit(c);
if(result)
	cout << "Yes, it is digit" << endl;
else
	cout << "No, it is't digit" << endl;
Posted by: Guest on January-02-2022
1

char to int in c++

char a = '4';
int ia = a - '0';
Posted by: Guest on August-01-2021

Browse Popular Code Answers by Language