Is there anyway , if I enter any string , then I want to scan ASCII value of each character inside that string , if I enter “john” then I should get 4 variables getting ASCII value of each character, in C or C++
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
yeah it’s very easy ..just a demo
But make sure your machine is supporting the ASCII value format.
In C every char has one integral value associted with it called ASCII.
Using
%dformat specifier you can directly print the ASCII of any char as above.NOTE: It’s better to get good book and practice this kind of program yourself.