Skip to content

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