Question 1
Sign = 1 exp = 1000 0001 frac= 1111 0000 0000 0000 0000 000
Convert this number to decimal. Recall that the bias is 127 for IEEE single precision.
For(i = 0; I < 3: i++)
For(j = 0; j<=I; j++)
Arr[i][j] = i + j;
int j = 1, k = 49, n[3];
int *p;
p = &j;
k=*p;
p = &n[2];
*p = k;
n[k] = *p--;
What is the value of:
Write a Linux command that moves(copies and removes the original) gcc to “comp202”, a sub-directory of the current working directory.
Ans b,c,d:
for(i = 0; I < 3: i++){
for(j = 0; j<=I; j++){
// To see the values of each each index and each value stored
cout << i << " " << j << " " << arr[i][j]
Arr[i][j] = i + j;
}
}
// Sketch arr
for(i = 0; I < 3: i++){
for(j = 0; j<=I; j++){
// To see the values of each stored at each index.
cout << i << " " << j << " " << arr[i][j] ;
}
}
Ans C - For C Statements
O/p is
j = 1
*p = 1
n[k] = 1
Get Answers For Free
Most questions answered within 1 hours.