[Stupid Note #1] Segmentation fault (core dumped)

I just encountered this little issue while I was trying to create an enhanced version of textbook example. I kept getting this error message after typing numbers that scanf required. It turned out that I missed a & character in front of my variable in scanf. It passed compiler with no error…… It took me few minutes to find it out……and yeah, I am so stupid haha.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s