Suppose you create an uninitialized vector as follows: vector evec; After adding the statement, evec.push_back(21); what will happen?

(A) The following statement will add an element to the start (the back) of evec and will initialize it with the value 21
(B) The following statement will add an element to the center of evec and will reinitialize it with the value 21
(C) The following statement will delete an element to the end (the back) of evec and will reinitialize it with the value 21
(D) The following statement will add an element to the end (the back) of evec and Qinitialize it with the value 21

»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 !!