Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
#Define / Case/ If practice
#include <stdio.h> #define one '1' #define two '2' void main() { char myChar; printf("Enter a value between 1 to 2:"); scanf("%c", &myChar); switch (myChar) { case one: printf("%c\n",one); break; case two: printf("%c\n",two); break; } }
run
|
edit
|
history
|
help
0
tst2.c
pointer
150112_CribaErastotenes
20171103_Digitos
a1
Binary example
asdfs
kushagra siingh_19BCE0665
Command Expressions in Gnu C: What Does Return Return?
iplk