who takes up more space: integer or string. and how much space in both for same numbers. For example: integer 788888 and string:“788888”.
Space integer vs string
@govilayush,
int takes 4 bytes, char takes 1 byte, string is collection of chars, thus takes (1*length of string) bytes.