Question
Problem 1 Write code to move aa in w, bb in x, cc in y and dd in z #include #include using namespace std; /*
Problem 1
Write code to move aa in w, bb in x, cc in y and dd in z
#include #include using namespace std; /* Do not directly assign w = aa or x = bb ... */ /* Write code to move aa in w, bb in x, cc in y and dd in z */
int main() { unsigned int a = 0xaabbccdd; unsigned char w, x, y, z; return 0; }
Problem 2
/* Reverse the string ... From this: this is my assembly class 118-02 To this: 20-811 ssalc ylbmessa ym si siht */
#include #include using namespace std; /* Reverse the string ... From this: this is my assembly class 118-02 To this: 20-811 ssalc ylbmessa ym si siht */
void swap(char*s, char* p) { }
int main() { char s[] = "this is my assembly class 118-02"; printf("%s ", s); for (int i = 0; i < 16; i++) { swap(); } printf("%s", s); return 0; }
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started