0

How can i Run mentioned code ?

#include <stdio.h> int main() { char c; printf("Enter The Charecter:"); scanf("%c",&c); printf("ANCII Value %c=%d",c); return 0; }

1st Dec 2020, 12:49 PM
Ankur Hazarika
2 Answers
1st Dec 2020, 12:55 PM
ㅀㅀㅀ
+ 4
in your second *printf* statement, you are providing lesser number of arguments than required. it need 2 values to fill in the places for "%c" and "%d" respectively but you are only passing one i.e. *c* Here is the fix👇 https://code.sololearn.com/cmIbtuMe58KB/?ref=app
1st Dec 2020, 12:51 PM
Arsenic
Arsenic - avatar