• edited by
1,018 views
0 0 votes

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

1 Answer

0 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');
Position:
Show:

Related questions

1 1 vote
0 0 answers
642
642 views
KashishNarang asked Aug 23, 2018
642 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);}
1 1 vote
1 1 answer
548
548 views
Ravi prakash pandey asked Sep 2, 2017
548 views
Who calls the printf and scanf function in c and who receives the value returned by these functions??
4 4 votes
1 1 answer
2.1k
2.1k views
Rudra Pratap asked Jun 25, 2017
2,081 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 ?
0 0 votes
1 1 answer
1.3k
1.3k views
Rudra Pratap asked Jun 25, 2017
1,315 views
#include<stdio.h>int main(){ int x=20; printf("%d %d ",x ,++x);}unable to understand how it prints the output. plz help