Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
REGISTRO EN C
Language:
Ada
Assembly
Bash
C#
C++ (gcc)
C++ (clang)
C++ (vc++)
C (gcc)
C (clang)
C (vc)
Client Side
Clojure
Common Lisp
D
Elixir
Erlang
F#
Fortran
Go
Haskell
Java
Javascript
Kotlin
Lua
MySql
Node.js
Ocaml
Octave
Objective-C
Oracle
Pascal
Perl
Php
PostgreSQL
Prolog
Python
Python 3
R
Rust
Ruby
Scala
Scheme
Sql Server
Swift
Tcl
Visual Basic
Layout:
Vertical
Horizontal
#include <stdio.h> typedef struct { unsigned short dia; unsigned short mes; unsigned short anyo; }fecha; typedef struct { char nombre[61]; char rut[13]; fecha fechaNacimiento; }persona; int main(void) { persona p; scanf("%60[^\n]s", p.nombre); scanf("%s", p.rut); scanf("%hu%hu%hu", &p.fechaNacimiento.dia, &p.fechaNacimiento.mes, &p.fechaNacimiento.anyo); printf("Nombre: %s\n", p.nombre); printf("Rut: %s\n", p.rut); printf("Fecha de nacimiento: %hu/%hu/%hu", p.fechaNacimiento.dia, p.fechaNacimiento.mes, p.fechaNacimiento.anyo); return 0; }
gcc
manuel encina muñoz 18.635.606-3 9 10 1993
Show compiler warnings
[
+
] Compiler args
[
-
]
Show input
Compilation time: 0.13 sec, absolute running time: 0.12 sec, cpu time: 0.06 sec, memory peak: 3 Mb, absolute service time: 0,33 sec
edit mode
|
history
|
discussion
Nombre: manuel encina muñoz Rut: 18.635.606-3 Fecha de nacimiento: 9/10/1993