054. Technical interview question: Give the output of following code

int main(){
    int arr[3]={10,20,30};
    int x=0;
    x = ++arr[++x] + ++x + arr[--x];
    printf("%d ",x);
    return 0;
}
Watch video explanation for this technical question

Leave a Reply

Your email address will not be published. Required fields are marked *