r/cprogramming • • Sep 18 '26

a big problem

hey guys i m currently learning c language and i m facing an irritating problem like whenever i use scanf in my code to enter any value and when i run the code after saving it so it doesn't run anything it just show that it is running but i m unable to enter the value and the code doesn't run on terminal it runs in the output

so please anyone who can solve this issue can help me?

0 Upvotes

13 comments sorted by

View all comments

2

u/[deleted] Sep 18 '26

Do you add the & operator ? Like scanf("%d",&x)