Skip to content
This repository has been archived by the owner on Nov 8, 2023. It is now read-only.

Latest commit

History

History
16 lines (12 loc) 路 350 Bytes

push_back.md

File metadata and controls

16 lines (12 loc) 路 350 Bytes

push_back

Description : Add new elements to the vector

Example:

    //Declare the vector  
    std::vector<int> vector1;

    //Function to push_back values to the vector
    vector1.push_back(1);
    vector1.push_back(2);

See Sample code Run Code