#include using namespace std; int main(){ int a = 4; int *pa = &a; *pa 8; cout << a <« endl;

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter2: Using Data
Section: Chapter Questions
Problem 14RQ
icon
Related questions
Question

what are the outputs of the following examples

#include <iostream>
using namespace std;
int main(){
int a = 4;
int *pa = &a;
*pa
8;
cout << a « endl;
Transcribed Image Text:#include <iostream> using namespace std; int main(){ int a = 4; int *pa = &a; *pa 8; cout << a « endl;
#include <iostream>
using namespace std;
int main(){
12;
int a =
int b =
33;
int *pa
&a;
int* pb
&b;
*pb
*pa + *pb;
%3D
%3D
cout << a << "," << *pb « endl;
II
Transcribed Image Text:#include <iostream> using namespace std; int main(){ 12; int a = int b = 33; int *pa &a; int* pb &b; *pb *pa + *pb; %3D %3D cout << a << "," << *pb « endl; II
Expert Solution
Step 1

Computer Science homework question answer, step 1, image 1

steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Knowledge Booster
Processes of 3D Graphics
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr