Answer:
DDR3 SDRAM having twice rate of data transferring as compared to DDR2 SDRAM both have 240 pin connection. DDR3 memory power consumption is 40 % less as compared to DDR2. both are transfers data on a 64 data bits wide bus. The physical difference occur in both type a cut is present at bottom along pin in DDR2 it is occur probably in center and In DDR3 it is occur at left through center.
Answer:
An absolute cell reference is a cell address that contain a dollar sign $ in row and column coordinate or both. We use absolute reference to keep row and column constant
Example: C5*$C$2
The reference to C2 is absolute and will not change when copied.
answer:
(i) #include <iostream>
using namespace std;
int main() {
int n1,n2,max;
cin>>n1>>n2;
if(n1>n2)//finding maximum between n1 and n2 in the program directly.
max=n1;
else
max=n2;
cout<<max;
return 0;
}
(ii)
#include <iostream>
using namespace std;
int maximum(int n1 ,int n2)
{
if(n1>n2)//finding maximum between n1 and n2 using function.
return n1;
else
return n2;
}
int main() {
int n1,n2,max;
cin>>n1>>n2;
max=maximum(n1,n2);
cout<<max;
return 0;
}
(iii)
#include <iostream>
using namespace std;
inline int maximum(int n1 ,int n2)
{
return (n1>n2)? n1:n2;
}
int main() {
int n1,n2,max;
cin>>n1>>n2;
max=maximum(n1,n2);//Finding maximum using inline function.
cout<<max;
return 0;
}
Output:-
54 78
78
all three codes give the same output.
Explanation:
In part (i) I have done the operation in the main function directly.
In part(ii) I have used function to calculate the maximum.
In part(iii) I have used inline function to calculate maximum.
Answer and Explanation:
In C programming language:
char fun(int*a, int*b){
printf("enter two integers: ");
scanf("%d%d",a,b);
int e;
printf("please enter a character: ");
e=getchar();
return e;
}
int main(int argc, char *argv[]) {
int d;
int f;
int g;
fun();
printf("%d%d%d", d, f, g);
}
We have declared a function fun type char above and called it in main. Note how he use the getchar function in c which reads the next available character(after the user inputs with printf()) and returns it as an integer. We then return the variable e holding the integer value as char fun() return value.
True gieofjeicjegkoekcoektkgkvnrnfkenfjenfkfj