WHAT IS THE WRONG WITH THIS CODE?

#include <stdio.h>#include <stdlib.h>int *get_val(int y) {int x = 200;x += y;return &x;}int main() {int *p, y = 10;p = get_val(y);printf("%d ", *p);exit(0);}

Does anyone know how I can fix this error in my program? It is not printing the even numbers to the console.

Write a program that reads an integer and prints the sum of all even integers between 2 and the input value, inclusive.I have uploaded a image of my program to google... more

java month calendar with days in month ad first sunday input

Write a program that produces a calendar. Your program should output acalendar for a single month, given parameters to specify how many daysin the month and the day of the first Sunday.
C++

09/29/20

I want to print the no. of contents inside the count please check the description for more details

#include <iostream>#include <vector>using namespace std;int main(){ vector<int> vec {1,3,5,15,16,17,18,19,20,21,25,26,27,30,50,55,56,58,100,200,300,400,500,600,700}; //----... more

09/29/20

What is a PEMDAS problem that equals 38? (I really need a fast answer but take your time)

Thank you so much you all are soooooo smart!!! :)

How to make a class called time on java with these data informaton:

■Class Time■-second:int = 0 ----> hour:[o, 23]--minute:int = 0 ----> minute: [o, 59]-hour: int=0 -----> second: [e, 59]Methods:-+Time()+Time (second: int, minute: int, hour: int)+getHour):... more

I'm solving tax problems using systems of linear equations. Help!

Last year, Dan had 10000 to invest. He invested some of it in an account that paid 7% simple interest per year, and he invested the rest in an account that paid 6% simple interest per year. After... more

09/28/20

how would you solve this?

Homer and Mike were replacing the boards on​ Mike's old deck. Mike can do the job alone in 1 hour less time than Homer. They worked together for 5 hours until Homer had to go home. Mike finished... more

09/28/20

Finding the length of a diagonal

The width of a rectangle is two less than twice its length if the area of the rectangle is 26 cm² what is the length of the diagonal?

09/27/20

Graphing Linear Functions

find three solutions for this linear function and choose the correct graph by clicking itg(x) = 3x-5 4

09/27/20

College math problems

60 subtracted from five times a number is 4 more than the number

09/27/20

Graphing a piece-wise defined function

H(x)=5 if x is not equal to 0

Please help me find how to write an equation in slope-intercept form.

Ricardo wants to by a phone that costs $1,150. He will make a down payment of $250 and will make monthly payments of $50. Write an equation in slope-intercept form that Ricardo can use to determine... more

09/27/20

math stat college question ASAP

Suppose you are taking a multiple-choice quiz that you are completely unprepared for. The quiz consists of 6 questions and each question has five possible answers to choose from. Thus, the... more

Explain what it means to say that two angles are complementary and that two are supplementary. Can complementary angles be adjacent?

Explain what it means to say that two angles are complementary and that two are supplementary. Can complementary angles be adjacent? Can they be vertical? Can supplementary angles be adjacent? Can... more

Need some help with my discrete Mathematics Homework, converting statement

Consider the following statements.    1. When I work a logic example without grumbling, you may be sure it is one I understand.    2. The arguments in these examples are not arranged in regular... more

find f(x+h)-f(x)

Question f(x)= -x^2-x

09/26/20

Differentiate. the following

Differentiate.f(θ) = θ cos(θ) sin(θ)

09/26/20

Differentiate the following

Differentiate. y = 7x 6 − tan(x)

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.