Problem Statement: Dhananjay has recently learned about ASCII values. He is very fond of experimenting. With his knowledge of ASCII values and character he has developed a special word and named it Dhananjay's Magical word A word which consists of alphabets whose ASCII values is a prime number is an Dhananjay's Magical word. An alphabet is Dhananjay's Magical alphabet if its ASCII value is prime. Dhananjay's nature is to boast about the things he know or have learned about. So just to defame his friends he gives a few strings to his friends and asks them to convert it to Dhananjay's Magical word None of his friends would like to get the given strings to Dhananjay's Magical Word Rules for converting: ho Function Rules: Fill the missing logic in function magicalAlphabet with return type char * and parameters as listed below: int N char *5 Sample Test Cases Test Case 1: Command Line Arguments: 6 AFREEN Expected Output: CGSCCO
Answers
Explanation:
With his knowledge of ASCII values and character he has developed a special word and named it Dhananjay's Magical word. A word which consist of alphabets whose ASCII values is a prime number is an Dhananjay's Magical word. An alphabet is Dhananjay's Magical alphabet if its ASCII value is prime.
Explanation:
Problem Statement: Dhananjay has recently learned about ASCII values. He is very fond of experimenting. With his knowledge of ASCII values and character he has developed a special word and named it Dhananjay's Magical word A word which consists of alphabets whose ASCII values is a prime number is an Dhananjay's Magical word. An alphabet is Dhananjay's Magical alphabet if its ASCII value is prime. Dhananjay's nature is to boast about the things he know or have learned about. So just to defame his friends he gives a few strings to his friends and asks them to convert it to Dhananjay's Magical word None of his friends would like to get the given strings to Dhananjay's Magical Word Rules for converting: ho Function Rules: Fill the missing logic in function magicalAlphabet with return type char * and parameters as listed below: int N char *5 Sample Test Cases Test Case 1: Command Line Arguments: 6 AFREEN Expected Output: CGSCCO