Type casting using atoi

Run Settings
LanguageC
Language Version
Run Command
#include <stdio.h> #include <stdlib.h> int main(void) { int num ; char marks[3] ; printf("Enter your marks :"); scanf("%s",&marks); num = atoi(marks); printf("\n %d",num); return 0; }
Editor Settings
Theme
Key bindings
Full width
Lines