3. (10 pts) Assume this declaration: char sign = '@'; (1) How many bytes of memory does sign use? (2) What about '@'? (3) What about "@"?
Added by Consuelo C.
Close
Step 1
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
For how many integers does the following statement reserve room? int[] value = new int[34]; a. 0 b. 33 c. 34 d. 35
Sanchit J.
```c #include <stdlib.h> int main(void) { // Q1 int count = 1; int number; int *ptr = &count; int *ptr2 = &number; // Q2 ptr = ptr2; *ptr2 = 3; // Q3 ptr = malloc(number * sizeof(char)); // Q4 ptr2 = malloc(count * sizeof(char)); ptr = ptr2; } ```
Akash M.
In computer science, $1 \mathrm{KB}$ of memory refers to 1 kilobyte, or 1 $\times 10^{3}$ bytes, of memory. This is really an approximation of 1 $\times 2^{10}$ bytes (since computer memory uses powers of $2)$. The TI- 84 Plus graphing calculator has $480 \mathrm{KB}$ of "FLASH ROM." How many bytes is this?
Polynomials
Exponents and Their Properties
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