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
As data travels further over a wavelength or frequency, the radiation type goes down.
<h3>What is an electromagnetic spectrum?</h3>
An electromagnetic spectrum can be defined as a range of frequencies and wavelengths into which an electromagnetic wave is distributed into.
In Science, the electromagnetic spectrum consist of the following types of energy from highest to lowest frequency and shortest to longest wavelength:
In this context, we can infer and logically deduce that as data travels further over a wavelength or frequency within the electromagnetic spectrum, the radiation type goes down.
Read more on electromagnetic spectrum here: brainly.com/question/23423065
#SPJ1
Well it all depends how you plan on making it as you would need to know Web Development or you could just copy paste code from YT