The following program
main( )
{
static int a[ ] = { 7, 8, 9 } ;
printf( "%d", 2[ a ] + a[ 2 ] ) ;
}
A. | results in bus error |
B. | results in segmentation violation error |
C. | will not compile successfully |
D. | none of the above |
Answer : D Explanation :
a[2] will be converted to *(a + 2). |
|
Option: A Explanation : Explanation will come here. Explanation will come here. Explanation will come here. Explanation will come here. Explanation will come here. |