Thread: Vectors in c.

  1. #1
    Registered User
    Join Date
    Oct 2017

    Vectors in c.

    In C exists vectors ? If yes , please an example with vector push

  2. #2
    Registered User
    Join Date
    Jun 2017
    No there aren't, C is a very old language without any data structures or other modern features.
    Better to learn C++.

  3. #3
    Programming Wraith GReaper's Avatar
    Join Date
    Apr 2009
    The vector of C++ is kinda like a dynamic array with a bit of stack elements sprinkled in. You can do that it C quite easily using a structure to hold a pointer, the allocated size and the used size, accompanied by a few functions to manipulate it.
    Devoted my life to programming...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Vectors in vectors - pointers and iterators
    By fisherking in forum C++ Programming
    Replies: 8
    Last Post: 07-27-2010, 09:34 AM
  2. STL Vectors of Vectors
    By Beamu in forum C++ Programming
    Replies: 2
    Last Post: 12-31-2008, 05:23 AM
  3. Vectors
    By Shadowwoelf in forum C++ Programming
    Replies: 23
    Last Post: 10-05-2008, 11:04 PM
  4. Using Vectors
    By Kenny77 in forum C++ Programming
    Replies: 4
    Last Post: 05-16-2006, 09:04 PM
  5. Vectors, Again
    By jrahhali in forum A Brief History of
    Replies: 5
    Last Post: 12-08-2005, 04:07 PM

Tags for this Thread