Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Show the contents of the following array declarations. a) int N1[5], N2 [5]; N1[2] = 4; N1[0] = N1[2]; N2 [4] = N1[0]; b)

image text in transcribed
1. Show the contents of the following array declarations. a) int N1[5], N2 [5]; N1[2] = 4; N1[0] = N1[2]; N2 [4] = N1[0]; b) float prices [5]={1.25, 3.50, 1.20, 2.99, 0.75}; c) float prices [5]={1.25, 3.50}; d) int months [ ]={1,2,3,4,5,6,7,8,9,10,11,12}; e) int x[2] [3]={1,2,3,3,2,1); f) int y[2] [3]={{1,2,3},{3,2,1}}; 2. What is the output of the following C program fragments? a) #include void main() { int a [3] [3] = {1,3,5,7,9}; int i=0,j, sum=0; for(j=0; j

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

AutoCAD Database Connectivity

Authors: Scott McFarlane

1st Edition

0766816400, 978-0766816404

More Books

Students also viewed these Databases questions

Question

Write a statement equivalent to ( (p q) (q, Using only ( and (?

Answered: 1 week ago

Question

a. How will the leader be selected?

Answered: 1 week ago