C++ Program to Determine the Unicode Code Point at a Given Index Last Updated : 07 Oct, 2022 Summarize Comments Improve Suggest changes Share Like Article Like Report Here, we will find out the unicode code point at a given index using a C++ program. Input: arr = "geEKs" Output: The Unicode Code Point At 0 is = 71. The Unicode Code Point At 1 is = 101. The Unicode Code Point At 2 is = 69. The Unicode Code Point At 3 is = 107. The Unicode Code Point At 4 is = 83.Approach: If the array/string value is increased then it is not feasible to declare an individual variable for the index. If the string size is decreased then the fixed variables can give Out of Bound Error. To handle these situations we will use a for loop to traverse the given string and print the corresponding code point. Example: C++ // C++ program to demonstrate // Unicode Code point // at a given index #include <iostream> using namespace std; // Driver code int main() { // define input array/string char arr[] = "GeEkS"; int code; // print arr cout << " Input String = " << arr; // execute a loop to traverse the arr elements for (int i = 0; arr[i] != '\0'; i++) { code = arr[i]; // display unicode code point at i-th index cout <<"\n The Unicode Code Point At "<<i<< " is = " << code; } return 0; } Output Input String = GeEkS The Unicode Code Point At 0 is 71 The Unicode Code Point At 1 is 101 The Unicode Code Point At 2 is 69 The Unicode Code Point At 3 is 107 The Unicode Code Point At 4 is 83 Time Complexity: O(n), where n is the array size.Space Complexity: O(1), Comment More infoAdvertise with us Next Article C++ Program to Determine the Unicode Code Point at a Given Index M mukulsomukesh Follow Improve Article Tags : C++ Programs C++ C Misc Programs Practice Tags : CPP Similar Reads C++ Program To Find If A Character Is Vowel Or Consonant In English Alphabet, vowels are 'a', 'e', 'i', 'o', and 'u'. The rest of the remaining characters (like 'b', 'c', 'd', 'f' ....) are consonants. In this article, we will learn to write a C++ program to check whether a character is Vowel or Consonant. C++ Program to Check Whether a Character is a Vow 2 min read C++ Program to Implement strpbrk() Function strpbrk() is a string function in C++ STL that takes in two strings and finds the first occurrence of any character of string2 in string1. This function returns the pointer to the character of string2 in string1 if there is any, otherwise returns NULL. Syntax: char* strpbrk(const char *str1, const c 3 min read How to Handle Unicode Strings in C++? A Unicode string is a sequence of code points, where each code point is a unique integer representing a character in the Unicode standard. It is used to represent text data in any language as it assigns a unique number to every character similar to the ASCII standard. But instead of representing onl 2 min read How to Convert ASCII Value into char in C++? In C++, ASCII (American Standard Code for Information Interchange) values are numerical representations of characters that are used in the C++. In this article, we will learn how to convert an ASCII value to a char in C++. Example: Input: int asciiValue = 65; Output: Character for ASCII value 65 is: 2 min read How to Read a File Character by Character in C++? In C++, file handling is used to store data permanently in a computer. Using file handling we can store our data in secondary memory (Hard disk). In this article, we will learn how to read a file character by character in C++. Example: Input: "Geeks for Geeks"Output: G e e k s f o r G e e k sRead Te 2 min read Like