What is thecontents of the array after the execution of the following - ProProfs
Topics-
Products +
     

What is the contents of the array after the execution of the following program :-int a[] = {10,30, 20, 10, 30, 40};for(i=1;i<=6;i++) { for(j=i+1 ; j<= 6; j++) { if(a[i] == a[) { a[ = 0; }}



A. Same
B. 10,10, 20, 20, 30, 40
C. 10,0 20, 0, 30, 40
D. 10,30, 20, 0, 0, 40
E. 40, 30 ,10, 0, 0, 0

This question is part of Data Structures

+ AnswerRequest Answer
...

1 Answer

John Smith

John Smith

Answered on Jun 23, 2017

10,30, 20, 0, 0, 40
  Reply

Search for Google images
Select a recommended image
Upload from your computer
Search for Google images
Select a recommended image
Upload from your computer
Search for Google images
Select a recommended image
Upload from your computer

Email Sent
We have sent an email to your address "" with instructions to reset your password.