You are not logged in.

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

husnain
User RankUser RankUser RankUser RankUser RankUser Rank
Administrator
From: Chichawatni,Pakistan
Registered: 2014-10-03
Posts: 8,129
Website

C Language Arrays And Strings Output:

C Programming Quizzes C Language Arrays And 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


You cannot discover the new oceans unless you have the courage to lose the sight of the shore.

2015-09-16 05:08:40

Advertisement
Ads By Google

Re: C Language Arrays And Strings Output:



Board footer