- 2
Type in a code to declare variable b and assign a's value to b, and then print their sum to the screen.
int a = 15; int b = ; cout << a b << endl;
9 ответов
+ 1
inline int add(int a, int b) {
__asm__ __volatile__ ( " addl %%ebx, ℅℅eax "
: "=a" (a)
: "a" (a), "b" (b) );
return a;
}
int main() {
int a = 15;
int b = a;
cout << add(a, b); // 30
}
0
Are you asking for help or posing a challenge?
0
int a=10;
int b=a;
cout << a+b ;
0
AK-47 that's beautiful
0
declare variable b and assign a's value to a( int b = a;)
print their sum ( + )
int a = 15;
int b =a ;
cout << a +b << endl;
0
correct
0
0
int a= 15;
int b =a;
cout<<a+b<<endl;
0
a
+