1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Trava [24]
4 years ago
12

Write a C program that has the following statements: int a, b; a = 10; b = a + fun(); printf("With the function call on the righ

t, ");
Computers and Technology
1 answer:
mart [117]4 years ago
6 0

Answer:Following is the C program:-

#include <stdio.h>

int fun()//function fun of return type int and it returns value 6.

{

   return 6;

}

int main() {

  int a, b;

  a = 10;

  b = a + fun();//adds 6 to a.

  printf("With the function call on the right, ");

  printf("\n%d ",b);//printing b..

return 0;

}

Output:-

With the function call on the right,  

16

Explanation:

The function fun return the value 6 so it adds 6 to a and stores the result in b.

You might be interested in
___________ is related to mass, but also includes the gravitational pull of the Earth.
anygoal [31]
Earth's gravity comes from all its mass. All its mass makes a combined gravitational pull on all the mass in your body. That's what gives you weight. And if you were on a planet with less mass than Earth, you would weigh less than you do here. So weight is the answer
4 0
3 years ago
Public static void prefixmerge(customer[] list1, customer[] list2, customer[] result {
White raven [17]
I can't get what do you need, but I guess it's a part of java code. I can explain what it means. It's used to unite two rising sorted arrays which are list1 and list2. The result is stored in result array. I suggest you to clearly explain your task as it's difficult to give you correct answer.
8 0
4 years ago
If Number = 7, what will be displayed after code corresponding to the following pseudocode is run? (In the answer options, new l
kherson [118]

Answer:

5,10; 6,12; 7,14

Explanation:

We will demonstrate the iteration of the loop:

First iteration: Number = 7, Count = 5 at the beginning. We will check if Count <= Number? Since it is correct, prints 5,10. Increment the Count by 1.

Second iteration: Number = 7, Count = 6. We will check if Count <= Number? Since it is correct, prints 6,12. Increment the Count by 1.

Third iteration: Number = 7, Count = 7. We will check if Count <= Number? Since it is correct, prints 7,14. Increment the Count by 1.

Forth iteration: Number = 7, Count = 8. We will check if Count <= Number? Since it is not correct, the loop stops.

8 0
3 years ago
The type of e-cards that have an antenna built into them are __________ cards.
maw [93]
Contactles..........................................................
3 0
3 years ago
Read 2 more answers
While Angela is making modifications to Katie’s Word document, she would like to inform Katie of the reasoning for the change. W
Ostrovityanka [42]

Answer:

Email would work

6 0
4 years ago
Other questions:
  • "what do you perform when you want to recall specific records from a database"
    13·1 answer
  • Click ____ to move a stacked object to the top of the stack. Move to Top Bring to Front Slide to Top Move to Front
    12·1 answer
  • Which of the following protocols is used to unsure secure transmissions on port 443?A. HTTPSB. TelnetC. SFTPD. SHTTP
    6·1 answer
  • The chain of command is an unbroken line of authority that extends from the top of the organization to the lowest echelon and cl
    7·1 answer
  • Explain the four basic operation performed by every computer​
    11·2 answers
  • Hey you know Python? Could you help me, please? It's for my Final please help me SOS.
    8·1 answer
  • The legal concept of limited use permits limited duplication and use of a portion of copyrighted material for certain purposes,
    6·1 answer
  • Which statement gives an advantage of multicellular organisms?
    7·2 answers
  • What necessarily happens when a photographer chooses to give either the aperture or the shutter speed priority?
    10·1 answer
  • What is a graphics card?
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!