Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Ptr_to_fct__v2
//gcc 5.4.0 #include <stdio.h> int c; typedef struct { int a; int b; }str_samp; str_samp sample, *sptr; int func(int *a, int r) { //aptr->a=60; *a=6; return(*a); } int main(void) { sample.a=50; sample.b=100; sptr = &sample; c=func(&sptr->a,20); printf("a=%d, b=%d, c=%d", sample.a,sample.b,c); return 0; }
run
|
edit
|
history
|
help
0
Practica 5 fibonacci
Lab 7 blackjack v0.5
Test2
ele709 3.5 finished
C_141210_Tartaglia
Little union method
FILE Access 2
150108_recursividadFactorial
ChangeStructVal
Project 3 Part 1 v1.0