Question 10 Given the program fragment below: int main() ( int n[5] (50,3,21), 1; for (1-5;1>=0;--1) printf("%d",n[1]); return 0; } What is/are the outputted value(s)? Select one: a. 21 3 50 b. ERROR c. 50 3 21 d. 0 0 0 21 3 50 e. 0 0 21 3 50 Clear my choice
Question 10 Given the program fragment below: int main() ( int n[5] (50,3,21), 1; for (1-5;1>=0;--1) printf("%d",n[1]); return 0; } What is/are the outputted value(s)? Select one: a. 21 3 50 b. ERROR c. 50 3 21 d. 0 0 0 21 3 50 e. 0 0 21 3 50 Clear my choice
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
C Program
Please help me with this one :)
![Question 10
Question 13
Given the program fragment below:
int main()
{
int n[5] (50,3,21), 1;
for (i=5;i>=0;--1)
printf("%d ",n[i]);
return 0;
}
What is/are the outputted value(s)?
Select one:
a. 21 3 50
b. ERROR
c. 50 3 21
d. 0 0 0 21 3 50
e. 0 0 21 3 50
Clear my choice
Answer:
What is the output of the following code fragment:
int ar[] = {2, 4, 6, 8);
printf("%d",ar[1]);](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F776dd101-42c9-4df8-88de-c90ec91b3cdb%2F8c8ff0e8-ab13-4632-a12c-f90ec4587805%2Fdhzvhg_processed.png&w=3840&q=75)
Transcribed Image Text:Question 10
Question 13
Given the program fragment below:
int main()
{
int n[5] (50,3,21), 1;
for (i=5;i>=0;--1)
printf("%d ",n[i]);
return 0;
}
What is/are the outputted value(s)?
Select one:
a. 21 3 50
b. ERROR
c. 50 3 21
d. 0 0 0 21 3 50
e. 0 0 21 3 50
Clear my choice
Answer:
What is the output of the following code fragment:
int ar[] = {2, 4, 6, 8);
printf("%d",ar[1]);
![Question 3
Question 7
Question 8
Consider the function definition below:
float funct(int a, float b)
{return (a + b);}
Which of the following is an invalid function call?
Select one:
A function named max() that requires two integer arguments as input and returns a whole
number data type value is declared as
Select one:
a. z=2,w=10.4; sum=funct(z,w);
b. funct(12.8, 4.5);
c. funct(3,21);
d. funct(2, 4.5);
Clear my choice
a. int max(int a, int b)
b. int max(a,b)
c. int max(int a, b)
d. float max(int a, int b)
Clear my choice
Which of the following declares an array of int named img?
Select one:
a. int img;
b. int img = int[];
c. int img[5];
d. int img]:
Clear my choice](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F776dd101-42c9-4df8-88de-c90ec91b3cdb%2F8c8ff0e8-ab13-4632-a12c-f90ec4587805%2Fckqpsx_processed.png&w=3840&q=75)
Transcribed Image Text:Question 3
Question 7
Question 8
Consider the function definition below:
float funct(int a, float b)
{return (a + b);}
Which of the following is an invalid function call?
Select one:
A function named max() that requires two integer arguments as input and returns a whole
number data type value is declared as
Select one:
a. z=2,w=10.4; sum=funct(z,w);
b. funct(12.8, 4.5);
c. funct(3,21);
d. funct(2, 4.5);
Clear my choice
a. int max(int a, int b)
b. int max(a,b)
c. int max(int a, b)
d. float max(int a, int b)
Clear my choice
Which of the following declares an array of int named img?
Select one:
a. int img;
b. int img = int[];
c. int img[5];
d. int img]:
Clear my choice
Expert Solution
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 3 steps with 2 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
![C How to Program (8th Edition)](https://www.bartleby.com/isbn_cover_images/9780133976892/9780133976892_smallCoverImage.gif)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
![Database Systems: Design, Implementation, & Manag…](https://www.bartleby.com/isbn_cover_images/9781337627900/9781337627900_smallCoverImage.gif)
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
![Programmable Logic Controllers](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education