Ponteiros

Run Settings
LanguageC
Language Version
Run Command
#include <stdio.h> struct pto { float x; float y; }; typedef struct pto ponto; int main(void) { ponto *p, A; p = &A; p->x = 1.0; p->y = 2.0; printf("\nPonteiro: (%f,%f)", p->x, p->y); printf("\nPonto A(%f,%f)", A.x, A.y); printf("\nOutra forma: (%f,%f)", (*p).x, (*p).y); printf("\n\n"); return 0; }
Editor Settings
Theme
Key bindings
Full width
Lines