- 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; }

2nd Jun 2019, 7:36 AM
Aniruddha Roy
Aniruddha Roy - avatar
6 Respostas
+ 1
It's just to get user input and print it on the screen
2nd Jun 2019, 7:38 AM
Airree
Airree - avatar
+ 1
The input has to be an integer
2nd Jun 2019, 7:41 AM
Airree
Airree - avatar
+ 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
2nd Jun 2019, 7:52 AM
Airree
Airree - avatar
0
but is there any condition of the input?
2nd Jun 2019, 7:40 AM
Aniruddha Roy
Aniruddha Roy - avatar
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?
2nd Jun 2019, 7:43 AM
Aniruddha Roy
Aniruddha Roy - avatar
0
tnx bro..
2nd Jun 2019, 6:18 PM
Aniruddha Roy
Aniruddha Roy - avatar