How do you convert a character into its ascii value?

1 answer

Answer

1080784

2026-05-07 10:20

+ Follow

In C a character already is its ASCII value:

char c= 'A';

printf ("%c is %d (0x%x hexa)\n", c, c, c);

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.