- 1
what is the main use of this code?can anyone tell me?
#include <stdio.h> int main() { int a; scanf("%d", &a); printf("You entered: %d", a); return 0; }
6 Respostas
+ 1
It's just to get user input and print it on the screen
+ 1
The input has to be an integer
+ 1
It's because when the number is too big, it creates a bit overflow, so numbers that are bigger than 4,294,967,294 , it becomes another number
0
but is there any condition of the input?
0
but when i am giving an input in the code playground,,it shows me wrong output...suppose,i give 789652 as input,,then it shows me 916636..what is the problem here?
0
tnx bro..