Suppose array a is int[] a = {1, 2, 3, 5, 7}, what is a[0] - a[2]? A. -2 B. 1 C. 2 D. -1

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter6: Using Arrays
Section: Chapter Questions
Problem 19RQ
icon
Related questions
Question

Suppose array a is int[] a = {1, 2, 3, 5, 7}, what is a[0] - a[2]?

  • A. -2
  • B. 1
  • C. 2
  • D. -1
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,