Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

[ Prob . 6 . Fundamental of Programming ] ( 2 5 p ) What is the output of the following code? #include stdio.h >

[Prob.6. Fundamental of Programming]
(25p) What is the output of the following code?
#include stdio.h>
void Func(int k, int m, int e, int *s, double *a){
**s=k+m+e;
**a=**s3.0;
}
int main(void){
int k=80;
int m=80;
int e=95;
int s=0;
double a=0;
Func(k, m, e, &s, & a);
printf("s=%d,a=% lf",s,a;
return 0 ;
}
(30p) Make a C program that prints all unique elements in a given array A. Use the following
skeleton code. If you want, you can add another function other than the main function.
#include A={4,2,1,5,3,4,1,1,8,6}ACA(10p)A=72.0?2(10p)A=72?2.0
image text in transcribed

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

More Books

Students also viewed these Databases questions

Question

What are the purposes of promotion ?

Answered: 1 week ago

Question

Describe three other types of visual aids.

Answered: 1 week ago