The line of code required to assign a value of 50.00 to a variable of double data type in C++ can be written thus :
- double average_student_grade = 50.00;
The declaration follows the format :
- Data type
- Variable name
- Value
The data type which is first stated, the double data type are floating point (have decimals) numbers which have 64 bit precison(a precison of 15 decimal digits) as opposed to floats which have 32 bit precison (a precison of 7 decimal digits).
The variable name is the name to hold the value of average grade. This name depends on the preference of the programmer. However. It is advisable that variable names are relatable.
Therefore, variable declaration in C++ may follow the format data type then variable name then value.
Learn more :brainly.com/question/12908743
* <span>They all engage users with fun or interesting features.
*</span><span>They encourage people to participate.</span>
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);
}
Portrait landscape is better for wide images