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
stepan [7]
3 years ago
7

Create a Delegate to Compare two Integers.

Computers and Technology
1 answer:
Yanka [14]3 years ago
6 0

Answer:

Delegate is a function pointer which points the address of a function.

Explanation:

Let the function to compare two integers takes two integers as arguments

C#.net syntax:

delegate void  Del(int,int);

Here delegate is the keyword. Del is the name of the delegate which stores the address of the function whose return type is void and which takes 2 integer arguments.

public void CompareIntegers(int x, int y)

{

if (x>y) Console.WriteLine("X is greater");

else Console.WriteLine("Y is greater");

}

delegate void  Del(int,int);

void main(){

Del del1=new Del(CompareIntegers);

}

You might be interested in
If you have an equipment failure while driving on an expressway, you should
julsineya [31]

Pull over off the the side of the road and call for help to get it fixed.

6 0
3 years ago
Fill in the blanks:
Temka [501]

Answer:

Explanation:

Since this is a fill in the blanks question, I will rewrite the sentences and make the answers bold and underlined for ease of access. Hope it helps.

1. A worksheet is made up of <u>cells</u> organized in a grid of rows and columns.

2. A <u>Cell Address</u> describes the location of a cell based on its column and row location.

3. A(n) <u>Absolute reference</u> refers to a fixed cell location that never changes.

4. Rows are typically represented by <u>Numbers</u> and contain data for individual records.

5. The <u>Format</u> of a worksheet defines its appearance.

I hope this answered your question. If you have any more questions feel free to ask away at Brainly.

7 0
3 years ago
How is kerning used in Word?
vladimir1956 [14]

Answer:

Following are the uses of kerning in the word is given below .

Explanation:

The keening in the Microsoft word is the method of pushing the characters nearer in by removing the unnecessary space between the character Following are the steps of using the kerning in the Microsoft word .

  • Choose the text that the user wanted kerning in the word .
  • Pressing the Ctrl+D it showing the dialog box.
  • After that there are number of option are seen then tap the check box of the  Kerning of fonts.
  • Fedding the option of spacing as per the user need .
  • Finally click on the "ok" option. It will make apply the kerning  in the Microsoft word
5 0
3 years ago
Read 2 more answers
Unless you specify otherwise, excel summarizes data by ____.
Lilit [14]
Unless you specify otherwise, excel summarizes data by  summing numeric data and counting data fields containing text.
<span> The most commonly used ways to </span><span>summarize data in excel are: pivot tables, autosum, sort, selection....
</span>
4 0
3 years ago
Consider the following line of code: price= input(Please enter the price: ") What would be the next line in your code that will
hodyreva [135]

Answer:

price float(price)

Explanation:

There are four basic type of data type use in the programming to declare the

variable.

1. int:  it is used for integer values.

2. float:  it is used for decimal values.

3. char:  it is used for character values

4. Boolean: it is used for true or false.

in the question, the one option contain the data type float (price float(price)). So, it store the value in decimal.

price int(price):  it store the value in integer.

price decimal(price):  it is wrong declaration of variable. their is no data type in the programming which name is decimal.

price price(decimal):  it is wrong declaration of variable. their is no data type in the programming which name is price.

6 0
3 years ago
Other questions:
  • What are the four basic operating principles of the information processing cycle?
    7·2 answers
  • The US government takes the protection of patients' private information very seriously. In 1996, went into effect. This law prot
    14·1 answer
  • Identify ways you can manage a project using project management software
    14·1 answer
  • Which of the following is an example of a word processing program?
    11·2 answers
  • Lenny is a cheese packer at Cheddar Express. He is paid $.52 for every case of cheese he packs and loads onto delivery pallets M
    12·1 answer
  • What is the purpose of OPPA? A. It regulates the strength of passwords chosen by the users. B. It prohibits the use of informati
    11·1 answer
  • Write a police description a person who know you well​
    12·1 answer
  • What is one of the benefits of using a library in a program?
    5·1 answer
  • Sarah is a detall-oriented programmer. While testing her program, what other skill would she have to apply in order to detect al
    9·1 answer
  • Explain why the scenario below fails to meet the definition of showrooming.
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!