Advertisement
Kl43z

ENUM

Sep 4th, 2014
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. #include <stdio.h>
  2. int main(){
  3. enum dia_de_la_semana
  4. {lunes=1, martes, miercoles, jueves, viernes, sabado, domingo};
  5. enum dia_de_la_semana hoy;
  6. hoy = sabado;
  7.  
  8. printf("%d\n", hoy);
  9. return 0;
  10.  
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement