like i have a string ch[100] how can i convert each character of it to integer that is ascii value which can be later converted in to binary so that ascii value of each character in a string has a corresponding binary value
pavitragupta
0
Newbie Poster
Recommended Answers
Jump to PostYou don't need to convert because char is already an integer(8bit integer). You can directly assign it to integer.
for(i = 0; i < 100; i++) num[i] = ch[i];
All 3 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.