You are not logged in.

#1 2015-09-16 05:01:06

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

C Language Arrays And Strings Execution:

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

Directions:
What will be printed after execution of the following code?

Question:
void main()
{
      int arr[10] = {1,2,3,4,5};
      printf("%d", arr[5]);
}

Option A):
0
Option B):
5
Option C):
Garbage Value
Option D):
6

Correct Answer is Option A):
0


Failure is the first step towards seccess.

2015-09-16 05:01:06

Advertisement
Ads By Google

Re: C Language Arrays And Strings Execution:



Board footer