A. | C provides no input-output features |
B. | C provides no file access features |
C. | Provides no features to manipulate composite |
D. | All of these |
Option: D Explanation : Click on Discuss to view users comments. sonali manohar shelke said: (8:23am on Monday 18th December 2017)
c has all above the features so option D is correct
|
If y is of integer type then the expression
3 * ( y - 8 ) / 9 and ( y - 8 )/ 9 * 3
A. | must yield the same value |
B. | must yield different values |
C. | may or may not yield the same value |
D. | none of these |
Option: C Explanation : If y = 11, the expression 3 * (y - 8) / 9 becomes 3 * 3 / 9. which evaluates to 1. But the expression ( y - 8 )/ 9 * 3 becomes 3 / 9 * 3. which evaluates to 0 (since 3 / 9 is 0) Click on Discuss to view users comments. prakash said: (4:38pm on Tuesday 30th April 2013)
=[3*(y-8)] / 9=[3*(11-8)] / 9=[3*(3)] / 9=9 / 9/=12ed=[(y-8)/9] * 3=[(11-8)/9] * 3=[(3)/9] * 3=[1/3] * 3=1thus,both r samemeans ans. is A
|
The following code fragment
int x, y =2, z, a;
x = ( y* = 2 ) + ( z = a = y )
printf ( "%d" , x );
A. | prints 8 |
B. | prints 6 |
C. | prints 6 or 8 depending on the compiler implementation |
D. | is syntactically wrong |
Option: C Explanation : y * = 2 means y = y * 2 i.e. y = 4, in this problem. So. the expression is equivalent to x = 4 + 4, which is 8. So, 8 will be printed. However, the order in which the operands are evaluated is implementation-dependent. If the right operand is evaluated first, the result will be 6. Click on Discuss to view users comments. |
Syllabus Covered in this section is
This Section covers Multiple Choice Questions Answers in C Programming . Here questions answers are given with explanation and references. These questions can be used for the preparation of various competitive and academic exams.
Who can benefit -
Various Search Terms used for this section are