1. Home >
  2. Apps >
  3. Groups >

checking datatype of input at runtime

Question asked by astha agrawal in #Coffee Room on Sep 11, 2009
astha agrawal
astha agrawal · Sep 11, 2009
Rank E2 - BEGINNER
how can we check the datatype of the input that the user has entered at runtime in C++? Posted in: #Coffee Room
safwan
safwan · Sep 11, 2009
Rank B2 - LEADER
Moderators I think this post should be in CS& IT forum..??
gaurav.bhorkar
gaurav.bhorkar · Sep 12, 2009
Rank B2 - LEADER
From what I have studied till today, A variable always has to be declared before it can be used and you always store an input into a variable.

Anyone know the answer ?
AGRU
AGRU · Sep 12, 2009
Rank D3 - MASTER
As per known to me during runtime in c++ datatype of the variables are checked as per earlier declared by the user before run time i.e during compilation.if a variable has an unspecified datatype then it may show compilation error .

You must log-in or sign-up to reply to this post.

Click to Log-In or Sign-Up