You are not logged in.

#1 2015-09-16 05:08:42

hasnain
Administrator
From: Chichawatni
Registered: 2014-10-13
Posts: 8,355
Website

C Language Arrays And Strings Output:

http://interviewquestionsanswers.org/quiz/C-Programming http://interviewquestionsanswers.org/qu … nd-Strings

Directions:
What will be the output of the program ?

Question:
#include
int main()
{
    int arr[1] = {10};
    printf("%d", 0[arr]);
    return 0;
}

Option A):
0
Option B):
1
Option C):
6
Option D):
10

Correct Answer is Option D):
10


Failure is the first step towards seccess.

2015-09-16 05:08:42

Advertisement
Ads By Google

Re: C Language Arrays And Strings Output:



Board footer