Exercise 1: Complete this program by filling in the code (places in bold). Note: use only pointer variables when instructed to by the comments in bold. This program is to test your knowledge of pointer variables and the & and * symbols. Exercise 2: Run the program with the following data: 10 15. Record the output here .
Added by Joy B.
Step 1
#include <stdio.h> int main(void) { int a, b; int *p, *q; /* read two integers */ scanf("%d %d", &a, &b); /* use only pointer variables from here */ p = &a; q = &b; printf("Before: a = %d, b = %d\n", a, b); printf("Via Show more…
Show all steps
Your feedback will help us improve your experience
Fatina Seck and 80 other AP CS educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
write a program that prints 1 2 4 8 16 32 64 128? use c++ program
Willis J.
Make Some Variables Write a program that does the following: - Creates a string variable - Creates an integer variable - Prints both variables, each on its own line Your program will output something similar to this: Keisha 100
Varun I.
Debolina B.
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
Watch the video solution with this free unlock.
EMAIL
PASSWORD