I am taking an amazing Python course in Greek. In a Python quiz the following question appeared: What will the following code print? What are the options here? Undeclared My C-based mind is yelling UNDECLAAAAAARED! The C code below: gives: error: ‘x’ undeclared The number 1 The outer scope of the f2 call has x… Continue reading Scope
Yesterday I remembered the following C code structure: I would prefer the following implementation: I mean why write while(1)? Anyway since the whole logic of the program in hand had this logic I followed it even if I would never have written it that way.