141592653

141592653

TW She/Her
Aug 9, 2020
119
Hey !
I'll have acces to the soon. Somebody has already tried it? It is initially used to boost horses for races. Just wanna have some feedback before trying ;)
 
  • Like
Reactions: puppy9
almost_dead

almost_dead

Arcanist
Aug 7, 2020
465
Code:
#include "stdio.h"

int main () {

int i_array[] = {1,2,3,4,0,0,0,0,0,0} ;
int n_array[] = {0,0,0,0,0,0,0,0,0,0} ;

int *i = &i_array[0] ;
int *n = &n_array[0] ;

printf ( "before 'while' :\t arrays are :\n" );
printf ( " i_array[]\t{%d,%d,%d,%d,.....}\n",i_array[0],i_array[1],i_array[2],i_array[3] );
printf ( " n_array[]\t{%d,%d,%d,%d,.....}\n",n_array[0],n_array[1],n_array[2],n_array[3] );

while (*n++=*i++) printf("%d\t%d\n",i,n);

printf ( "after 'while' :\t arrays are :\n" );
printf ( " i_array[]\t{%d,%d,%d,.....}\n",i_array[0],i_array[1],i_array[2],i_array[3] );
printf ( " n_array[]\t{%d,%d,%d,.....}\n",n_array[0],n_array[1],n_array[2],n_array[3] );

}
 
  • Love
Reactions: I_love_to_bake and 141592653
141592653

141592653

TW She/Her
Aug 9, 2020
119
This is a quick way to copy to arrays. It's clever and beautiful though, I don't see the link with Vincamine ^^
 

Similar threads

L
Replies
13
Views
420
Recovery
EvisceratedJester
EvisceratedJester
wanttogetonthebus
Replies
9
Views
222
Suicide Discussion
wanttogetonthebus
wanttogetonthebus
EmmaQanbana
Replies
0
Views
99
Suicide Discussion
EmmaQanbana
EmmaQanbana
fruitcup333
Replies
3
Views
298
Suicide Discussion
onelastcall
onelastcall
notadaisy
Replies
6
Views
167
Offtopic
Rudi
Rudi