Skip to content
Snippets Groups Projects
Select Git revision
  • 7adb9d9dec6d64ee162ecfa9e6f3726bc2c49288
  • main default protected
2 results

alert-add.component.spec.ts

Blame
  • Forked from an inaccessible project.
    test_vectors.c 711 B
    /*
    	Autheur		: Abivarman KANDIAH
    	Date		: 22/02/2022
    	Fichier		: test_vectors.c
    	Descritpion : 
    */
    
    #include <stdio.h>
    #include <stdlib.h>
    #include <stdint.h>
    #include "../header/vectors.h"
    
    int main()
    {	
    	vector test = vector_create();
    
    	printf("Created Vector lenght : %d \n", vector_length(test));
    
    	vector_push(test, 15);
    
    	printf("Modified Vector lenght : %d \n", vector_length(test));
    
    	type val = vector_pop(test);
    
    	printf("Modified Vector lenght : %d and the value we popped : %d \n", vector_length(test), val);
    
    	vector_push(test, 42);
    	vector_set(test, 0, 69);
    	val = vector_pop(test);
    
    	printf("Modified Vector lenght : %d and the value we popped : %d \n", vector_length(test), val);
    
    
    
    	return 0;
    }