#include int check (int x[], int n, int i); #define SIZE 10 int main() { int a [SIZE] = {2,4,7,5, 1, 13, 10, 8, 39, 17); printf("%d\n", check (a, SIZE, 1)); return 0; } int check (int x[], int n, int i) if (i>= n) return 1; else if (x[i]>x[i-1]) { printf("%d\n",x[i]); return 1+ check (x, n,i+1); } else return check (x, n, i+1); #include int main () ( int x 8, y = 10, z; int *p1, *p2; = &y; pl *p1=x+3; x=y; p2=&x; *p2=y+5; p1=p2; z=*p1+10; printf("%d\n%d\n%d\n", x, y, z); return 0;

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
icon
Related questions
Question
100%
Please send me answer within 10 min!! I will rate you good for sure!! Please send me typed answer!!
Question 7
#include <stdio.h>
#define SIZE 7
int main() {
int a [SIZE],i;
printf("Enter 7 integers\n");
int count SIZE-1;
for (i = 1; i <= SIZE; i++) {
scanf("%d", &a [count]);
count= count-2;
if (count<0)
count-SIZE-2;
}
for (i=0; i < SIZE; i++)
printf("%d\n", a[i]);
return 0;
Values typed by the user:
Enter 7 integers
4 5 6 10 11 8 3
Transcribed Image Text:Question 7 #include <stdio.h> #define SIZE 7 int main() { int a [SIZE],i; printf("Enter 7 integers\n"); int count SIZE-1; for (i = 1; i <= SIZE; i++) { scanf("%d", &a [count]); count= count-2; if (count<0) count-SIZE-2; } for (i=0; i < SIZE; i++) printf("%d\n", a[i]); return 0; Values typed by the user: Enter 7 integers 4 5 6 10 11 8 3
#include <stdio.h>
int check (int x[], int n, int i);
#define SIZE 10
int main() {
int
a [SIZE]=(2, 4, 7, 5, 1, 13, 10, 8, 39, 17);
printf("%d\n", check (a, SIZE, 1));
return 0;
}
int check (int x[], int n, int i)
{
if (i>= n)
return 1;
else if (x[i]>x[i-1]) {
printf("%d\n",x[i]);
return 1+ check (x, n,i+1);
}
else
return check (x, n, i+1);
#include <stdio.h>
int main ()
{
int x = 8,
int *p1, *p2;
pl = &y;
*p1=x+3;
=
y 10, 2;
x=y;
p2=&x;
*p2=y+5;
p1=p2;
z=*p1+10;
printf("%d\n%d\n%d\n", x, y, z);
return 0;
Transcribed Image Text:#include <stdio.h> int check (int x[], int n, int i); #define SIZE 10 int main() { int a [SIZE]=(2, 4, 7, 5, 1, 13, 10, 8, 39, 17); printf("%d\n", check (a, SIZE, 1)); return 0; } int check (int x[], int n, int i) { if (i>= n) return 1; else if (x[i]>x[i-1]) { printf("%d\n",x[i]); return 1+ check (x, n,i+1); } else return check (x, n, i+1); #include <stdio.h> int main () { int x = 8, int *p1, *p2; pl = &y; *p1=x+3; = y 10, 2; x=y; p2=&x; *p2=y+5; p1=p2; z=*p1+10; printf("%d\n%d\n%d\n", x, y, z); return 0;
Expert Solution
steps

Step by step

Solved in 3 steps with 3 images

Blurred answer
Knowledge Booster
Array
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.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
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)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education