Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In emoji _ invertChar, you will be inverting an emoji. You are provided with a string in this function. You have to invert only the

In emoji_invertChar, you will be inverting an emoji. You are provided with a string in this function. You have to invert only the first character of this string (which may be up to 4 bytes) only if it is an emoji. The inversion is a semantic, so you should invert the meaning of the emoji (NOT flipping or "inverting" the bits). You will have to invert ""(U+1F60A) to some sort of sad face (your choice!). In addition to "", you need to invert at least five other emojis of your choice (and its okay to do more than just five).
Here's my code thus far:// Modify the UTF-8 string 'utf8str' to invert the FIRST character (which may be up to 4 bytes)
II in the string if the first character is an emoji. At a minimum:
//- Choose at least five more emoji to invert.
void emoji_invertChar(unsigned char *utf8str){
unsigned char ?**s=(unsigned char)(*utf8str);
int length = strlen(s);
for (int i=0; i length; i++){
// do something
}
}
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Management Databases And Organizations

Authors: Richard T. Watson

6th Edition

1943153035, 978-1943153039

More Books

Students also viewed these Databases questions