4)C Program to find the ASCII value of a character:-
Logic:-In C, a character variable holds ASCII value (an integer number between 0 and 127) rather than that character itself.This value is known as ASCII value. for example ASCII value of capital 'A' is 65.To find ASCII value simple initialize character into int variable and print it.
Example:-
Logic:-In C, a character variable holds ASCII value (an integer number between 0 and 127) rather than that character itself.This value is known as ASCII value. for example ASCII value of capital 'A' is 65.To find ASCII value simple initialize character into int variable and print it.
Example:-
Comments
Post a Comment