Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1 6 . Consider the following code snippet: int arr [ 2 ] [ 3 ] = { { 1 3 , 2 3 ,

16. Consider the following code snippet: int arr[2][3]={{13,23,33},{14,24,34}};What is the appropriate statement to display the value 24 from the given array? 1. cout arr[1][2]; 2. cout arr[2][2]; 3. cout << arr[1][1]; 4. cout << arr[2][1]; 17. Consider the following code snippet: 1. int arr[2][3]={{1,2,3},{4,5,6}}; 2. int val = arr[0][2]+ arr[1][2]; cout << val; What is the output of the given code snippet on execution? 1.52.73.910+18. Consider the following code snippet: 1. int cnt =0; 2. int myarray[4][5]; 3. for (int i =0; i <5; i++) minorico for (int j =0; j <4; j++){ myarray[j][i]= cnt; snt++; What is the value of myarray[1][2] after the code snippet is executed? 1.82.93.194.1120. Consider the following code snippet: 1. int arr[3][3]={{1,2,3},{4,5,6}}; 2. int val = arr[0][2]+ arr[2][0]; cout << val; What is the output of the given code snippet on execution? 1.32.43.54.621. Consider the followingende sninnet.21. Consider the following code snippet: 1. vector somedata; somedata.push.kask (10); What is the size of the vector somedata after the given code snippet is executed? 1.02.13.104.222. What is the output of the following code snippet? 1. vector int> num (4); 2. num.push_back (4); cout << num.size(); 1.12.33.44.523. Consider the following code snippet: 1. vector int> somenum (5); 2. somenum[0]=1; 3. somenum[1]=2; 4. somenum[2]=1; 5. int sot =0; 6. for (int count =0; count

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

Step: 3

blur-text-image

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

Database Systems An Application Oriented Approach Complete Version

Authors: Michael Kifer, Arthur Bernstein, Richard Lewis

2nd Edition

0321268458, 978-0321268457

More Books

Students also viewed these Databases questions