Message from C, C++ discussions

November 2019

— If i input an int it works fine,


But if type in lets say a letter , its called the not_an_option() function which is not even lexically even in that function

— That function is only called in the initial question function

— You write so much

— Lol

— Do you understand ?

— Did you check all scanf calls?

— What you mean ?

— Check if scanf succeeded

— Ok give me 2 mins

— Also consider compiling with -fsanitize=address or -fsanitize=undefined and run it again with same input

Message permanent page

— I think that your main problem is that you consider that programming is just writing code