Welcome Guest ( Log In | Register )

Outline · [ Standard ] · Linear+

> need help with c programming

views
     
xboxrockers
post Nov 23 2021, 01:40 AM

On my way
****
Senior Member
652 posts

Joined: Dec 2011



scanf("%i", &n);

This is dangerous and wrong, imagine you key in 55555
but n is only 4bytes.

 

Change to:
| Lo-Fi Version
0.0195sec    0.30    6 queries    GZIP Disabled
Time is now: 15th August 2022 - 03:38 AM