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
Pachacha [2.7K]
4 years ago
9

Write the definition of a function named counter that receives no parameters and returns 0 the first time it is invoked, returns

1 the next time it is invoked, then 2, 3 and so on.
Computers and Technology
1 answer:
Diano4ka-milaya [45]4 years ago
8 0

Answer:

int counter( )

{

static int xvalue = 0;

return(xvalue++);

}

Explanation:

The first line of code declares the function and its return type integer. Then we create a static variable xvalue and initialize to 0. the statement return(xvalue++) ensures that at each method call, the value of integer is increased by 1

You might be interested in
Javascript is an object-based programming language that involves working with the properties and methods associated with objects
dimulka [17.4K]

Answer:

True

Explanation:

You can set variables and make method functions.

4 0
2 years ago
bad word bad word bad word bad wordbad word bad wordbad word bad wordbad word bad wordbad word bad wordbad word bad wordbad word
topjm [15]

Answer:

men badwordbadword badwor

7 0
4 years ago
Write a program that creates a histogram that allows you to visually inspect the frequency distribution of a set of values. the
jek_recluse [69]
Look it up on google ma boi
8 0
3 years ago
Phillip is a wellness counselor. He has created a newsletter as a service for his clients. He needs to decide upon a method to d
Alexus [3.1K]
The best technology that Philip could use is the Email Newsletters.  <span> Sent on a regular basis, a content-based email newsletter not only helps you stay on top, but also showcases your updates concerning wellness,  C</span>reate a newsletter that will engage your users.  <span>Ensure that each content is educational, informative, and short but clear. </span>
3 0
4 years ago
Which of the following is a definition of a conventions
laiz [17]
Need more information
6 0
4 years ago
Read 2 more answers
Other questions:
  • I need help to find out what is wrong with this program and my variable, "exponent" comes out as 0 in the output instead of the
    14·1 answer
  • Maria is comparing her history project's second-place award to her classmate's first-place award. She starts planning how to win
    6·2 answers
  • EASY AND I GIVE BRAINLIEST!!! What is a good jeopardy question about operating systems?
    6·1 answer
  • The United States Highway System is a _____________ in the United States numbered within a nationwide grid.
    9·1 answer
  • PLEASE HELP
    15·2 answers
  • The advent of mobile systems run by Android and other operating systems opens a wide range of new system management and security
    5·1 answer
  • Write a function to output an array of ints on a single line. Funtion Should take an array and an array length and return a void
    9·1 answer
  • Alright, so I have a wireless mouse that uses a dongle (it's not Bluetooth nor wired). But recently I realized that none of the
    12·1 answer
  • Can you withdraw from courses in top hat?
    14·1 answer
  • What are some applications of computer in public administration?​
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!