Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

Variable Data Type Scope Purpose

c char val Used as actual


parameter
str string to_Decimal Used as actual
parameter
base int to_Decimal Used as actual
parameter
len int to_Decimal Used in the form of
local variable to store
the length of the
string
i int to_Decimal For indexing the string
power int to_Decimal Used in the form of
local variable for
calculation purpose
num int to_Decimal, reVal Used in the form of
local variable for
calculation purpose
inputNum int from_Decimal Used as actual
parameter
res string from_Decimal Used in the form of
local variable for
storing reverse of
string
s string convert_Base Used as actual
parameter and storing
the number
a int convert_Base Used as actual
parameter and storing
the initial base
b int convert_Base Used as actual
parameter and storing
the base to convert
into
ans string convert_Base Used as actual
parameter
input string reverse Use as actual
parameter
l int reverse Used in the form of
local variable for
indexing purpose
r int reverse Used for storing the
length of array
temp char reverse Used as third variable
for swapping

You might also like