Answer: The difference between call by value and call by reference is that in call by value the actual parameters are passed into the function as arguments whereas in call by reference the address of the variables are sent as parameters.
Explanation:
Some examples are:
call by value
#include <stdio.h>
void swap(int, int);
int main()
{ int a = 10, b= 20;
swap(a, b);
printf("a: %d, b: %d\n", a, b);
}
void swap(int c, int d)
{
int t;
t = c; c = d; d = t;
}
OUTPUT
a: 10, b: 20
The value of a and b remain unchanged as the values are local
//call by reference
#include <stdio.h>
void swap(int*, int*);
int main()
{
int a = 10, b = 20;
swap(&a, &b); //passing the address
printf("a: %d, b: %d\n", a, b);
}
void swap(int *c, int *d)
{
int t;
t = *c; *c = *d; *d = t;
}
OUTPUT
a: 20, b: 10
due to dereferencing by the pointer the value can be changed which is call by reference
Answer:
false, that shouldn't be a a priority to identify if they are or not.
Explanation:
Answer
There are a lot of advantages of web based applications.
Explanation:
Below are the advantages:
- Web based applications can be accessed from device that is connected to the device.
- No physical software required to download, install, update or manage which saves a lot of administration work for large companies.
- Web based software is compatible with any device or platform. The software is delivered through a browser of the users' choice.
- Mobile device applications allow for access to the software when out of the office.
- Direct access to latest information for Employees where every they are located.
Apart from these, there are lot more benefits, like quick and easy updates, centralized data where data is secure and easy to backup. We can reach anybody, anywhere in the world.
Business costs are drastically reduced by spending less time talking to customers over the phone.
Online training can be finished at user's own time and risk.
It's available 24 hours a day, 7 days a week
The software is always up-to-date
Answer:
// program in C++.
// headres
#include <bits/stdc++.h>
using namespace std;
// main function
int main()
{
// array
int temperatures[7];
// count variable
int count=0;
cout<<"Enter the temperature of all days:";
for(int a=0;a<7;a++)
{
// read temperature of 7 days
cin>>temperatures[a];
// find temperature is extreme or not
if(temperatures[a]<-10||temperatures[a]>25)
// count
count++;
}
// print count of extreme temperature
cout<<"number of days of extreme temperature:"<<count<<endl;
return 0;
}
Explanation:
Create an array of size 7 to store the temperature of all days of week.Read the temperature of each day.If the temperature is less than -10 or greater than 25 then increment the count.This will count the number of days of extreme temperature.Print the count.
Output:
Enter the temperature of all days:-20 12 18 30 32 -15 15
number of days of extreme temperature:4
<span>Keyloggers can be either software-based or deployed via hardware, such as a
recording "dongle" that is plugged in between a keyboard and a PC.
</span><span>The keylogger is also called keystroke logger or system monitor. This technology
used to monitor and record each keystroke typed on a specific
computer's keyboard. </span>