My issue
runtime error dont know the reason
My code
#include <stdio.h>
int main(void) {
int a;
scanf("%d",a);
printf("Your number is: %d",a);
return 0;
}
Learning course: Learn C
Problem Link: CodeChef: Practical coding for everyone
runtime error dont know the reason
#include <stdio.h>
int main(void) {
int a;
scanf("%d",a);
printf("Your number is: %d",a);
return 0;
}
Learning course: Learn C
Problem Link: CodeChef: Practical coding for everyone
At line[5], declare scanf("%d", &a);
As in C Language ‘&’ is used to denote the address of any variable and since you are taking an input from user, you have to store first. Right?