Warning: implode(): Invalid arguments passed in /www/wwwroot/jobquiz.info/mdiscuss.php on line 336 What will be the output of the program ? #include<stdio.h> int main() { int arr[1]={10}; printf("%d\n", 0[arr]); return 0; } ?->(Show Answer!)
1. What will be the output of the program ? #include<stdio.h> int main() { int arr[1]={10}; printf("%d\n", 0[arr]); return 0; }
Ask Your Doubts Here
Comments
By: guest on 01 Jun 2017 06.00 pm
Step 1: int arr[1]={10}; The variable arr[1] is declared as an integer array with size '2' and it's first element is initialized to value '10'(means arr[0]=10) Step 2: printf("%d\n", 0[arr]); It prints the first element value of the variable arr. Hence the output of the program is 10.