edited by
636 views
0 votes
0 votes

If we  are taking character as input then how we can check the character against a a range of numbers. Please explain

edited by

1 Answer

0 votes
0 votes
Character is just for your interpretation. Inside a computer a character is also a number. to be specific computer uses ASCII numbers to store character.
for proof, try to print
printf("%d",'a');

Related questions

299
views
0 answers
1 votes
KashishNarang asked Aug 23, 2018
299 views
Output will be-int main(){ int a =0,b=1,c=3:*((a)?&b&:&a)=a ? b : c;printf("%d %d%d ", a,b,c);}
340
views
1 answers
1 votes
Ravi prakash pandey asked Sep 2, 2017
340 views
Who calls the printf and scanf function in c and who receives the value returned by these functions??
1.4k
views
1 answers
3 votes
Rudra Pratap asked Jun 25, 2017
1,412 views
#include<stdio.h> int main() { int i = 0x1 << sizeof(int)*8-1; printf("\n%x",i); i = i >> sizeof(int)*8-1; printf("%d",i); }Find the output ?
540
views
1 answers
0 votes
Rudra Pratap asked Jun 25, 2017
540 views
#include<stdio.h>int main(){ int x=20; printf("%d %d ",x--,++x);}unable to understand how it prints the output. plz help