Describe to me some bad code you've read or inherited lately.



Describe to me some bad code you've read or inherited lately...

Answer / Purnima Tiwari

Recently, I encountered a piece of code written in C where functions were defined without prototypes at the top of the file, causing numerous linker errors and complicating maintenance. Another example is spaghetti code—an overly complex and hard-to-follow sequence of statements with no clear structure or organization, making it difficult to understand, debug, and modify.nBad code can lead to inefficiencies, errors, and security vulnerabilities, emphasizing the importance of clean, well-documented, and modular programming practices.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Embedded Systems AllOther Interview Questions

Tell me what is difference between binary semaphore and mutex?

1 Answers  


Explain what is semaphore?

1 Answers  


Please explain what is interrupt latency? How can you reduce it?

1 Answers  


Explain what are the differences between analytical and computational modeling?

1 Answers  


Tell me why is it better to use multi-threading polling then single threading model?

1 Answers  


Tell me whether we can use semaphore or mutex or spinlock in interrupt context in linux kernel?

1 Answers  


Have you developed software testing procedures for new systems and performed qa, quality assurance, or audits?

1 Answers  


Do you know what is priority inheritance?

1 Answers  


What are the languages used in embedded system?

1 Answers  


Explain what is size of character, integer, integer pointer, character pointer?

1 Answers  


What is loop unrolling?

1 Answers  


Tell me what is interrupt latency?

1 Answers  


Categories