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
sort_using_pointers.c
Assignment 5 v2
Lab 11 v.05
método de ordenamiento insertion sort
Pointer
Prime
150116_PrimoFactorial
day 3 integer manipulation
ele709 lab 3.2
sample