2nd Aug 2022, 6:59 PM
Muhammad Talha Atif
Muhammad Talha Atif - avatar
7 odpowiedzi
+ 2
Yes, but what is char 1? It could be a character that cannot be displayed? https://unicode-table.com/en/
2nd Aug 2022, 7:15 PM
Lisa
Lisa - avatar
+ 2
I linked a unicode table. Try different integers, you'll find that it prints
2nd Aug 2022, 7:19 PM
Lisa
Lisa - avatar
+ 1
You initialized the array as char but then you provide integer?
2nd Aug 2022, 7:07 PM
Lisa
Lisa - avatar
+ 1
This looks complicated
4th Aug 2022, 9:22 AM
Gloria Amedome
Gloria Amedome - avatar
0
We can intialize it with integer... cout<<arr[0]+arr[1]; is giving answer Lisa
2nd Aug 2022, 7:12 PM
Muhammad Talha Atif
Muhammad Talha Atif - avatar
0
Lisa Yes it is not displaying characters... 🥲
2nd Aug 2022, 7:18 PM
Muhammad Talha Atif
Muhammad Talha Atif - avatar
0
Gloria Amedome It is storing ascii values ..
4th Aug 2022, 9:26 AM
Muhammad Talha Atif
Muhammad Talha Atif - avatar