updated with the suggested changes

This commit is contained in:
Rachit Bhalla 2020-10-19 00:53:48 +05:30
parent 5e11041d41
commit 19fb5ba4dd

View File

@ -14,7 +14,7 @@
/** /**
* @brief Convert octal number to decimal number * @brief Convert octal number to decimal number
* @param octalValue is the octal number that needs to be converted * @param octalValue is the octal number that needs to be converted
* @returns A decimal number after conversion * @returns a decimal number after conversion
*/ */
long octalToDecimal(long octalValue){ long octalToDecimal(long octalValue){
long decimalValue = 0; long decimalValue = 0;
@ -31,7 +31,7 @@ long octalToDecimal(long octalValue){
/** /**
* @brief Convert octal number to hexadecimal number * @brief Convert octal number to hexadecimal number
* @param octalValue is the octal number that needs to be converted * @param octalValue is the octal number that needs to be converted
* @returns A hexadecimal value as a string after conversion * @returns a hexadecimal value as a string after conversion
*/ */
char *octalToHexadecimal(long octalValue){ char *octalToHexadecimal(long octalValue){
char *hexadecimalValue = malloc(256 * sizeof(char)); char *hexadecimalValue = malloc(256 * sizeof(char));