From following; which one is the correct syntax of an array initialize: Array size is 10 and it is of double data type to value 0?

(A) arr[10] = {0.0};
(B) double arr[10]= 0.0;
(C) double arr[10] = {0.0};
(D) double arr[] = 0.0;

»Important Links:

Latest Jobs in PakistanGovt Jobs in PakistanPrivate Jobs in Pakistan
NTS JobsPPSC JobsFPSC Jobs
Teaching JobsNADRA JobsBank Jobs
English McqsGeneral Knowledge McqsPak Studies Mcqs
Current Affairs McqsCurrent Affairs Mcqs PDFCurrent Affairs of Pakistan
Books PDFNotes PDFIslamic Studies Mcqs

Leave a Reply

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

error: Content is protected !!