Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
scanf1
//gcc 5.4.0 #include <stdio.h> int main(void) { int answer; short myFirst = 1; long mySecond = 2; float myThird = 3.0; double myFourth = 4.4; long double myFifth = 5.54; char myCharacter = 'a'; int a; float b; scanf("%d%f",&a,&b); printf("a:%d ---- b:%f", a, b); printf("The size of int %zu\n",sizeof(answer)); printf("The size of short %zu\n",sizeof(myFirst)); printf("The size of long %zu\n",sizeof(mySecond)); printf("The size of float %zu\n",sizeof(myThird)); printf("The size of double %zu\n",sizeof(myFourth)); printf("The size of long double %zu\n",sizeof(myFifth)); printf("The size of char %zu\n",sizeof(myCharacter)); printf("myCharacter is %c\n", myCharacter); printf("myCharacter is %d\n", myCharacter); //the s after the % is for string //the d after the % is for digit comp sees, c for character we see return 0; }
run
|
edit
|
history
|
help
0
test
Hello world
Problem: on_off
Generic Reference constraint
Properties in Interfaces
math 10.97
regex: rozważania nad powielaniem grup za pomocą kwantyfikatora
ew
amstrong number
fgtyhi8uy7htr4e3qwcedf