filmov
tv
C Code refactoring , replace switch case with ternary operation, convert char to int

Показать описание
I had a long switch block with 10 case blocks. It was converting a char to a digit. At that time, I did not have enough understanding of C programming so, I did not know any better way to do it.
Now, I have some understanding so, I have replaced that live of code with better code.
Source Code :-
#codeinc #clivecoding #prefixpostfix #refactoring
Now, I have some understanding so, I have replaced that live of code with better code.
Source Code :-
#codeinc #clivecoding #prefixpostfix #refactoring