Karthik Agarwal

Karthik Agarwal

  • NA
  • 748
  • 265.5k

How to read a numerical value from console window and store it in a character array?

Nov 11 2011 5:46 AM
Hi,

I need to take some input from console window like 1234 but should be read as decimal value and do whatever you want and store the same in character array. can anyone tell me how can i do this? max width of numerical value is 4 bytes.

Note: I should read from console as decimal value.

Answers (12)