#include <stdio.h>
struct teste {
int x, y;
};
void func ( struct teste *t );
int main( void ) {
struct teste p;
p.x = 10;
p.y = 5;
func( &p );
return( 0 );
}
void func( struct teste *t ) {
t -> x = t -> x * 2;
t -> y = t -> x - t -> y;
}
a) x=20, y=15
b) x=20, y=5
c) x=10, y=5
d) x=10, y=15
e) NDA
Referência: http://pt.scribd.com/doc/52839446/75/Exercicios-em-Classe
Um comentário:
CORRETA: a
Postar um comentário