checking datatype of input at runtime

astha agrawal

astha agrawal

@astha-agrawal-P3E8fF Oct 26, 2024
how can we check the datatype of the input that the user has entered at runtime in C++?

Replies

Welcome, guest

Join CrazyEngineers to reply, ask questions, and participate in conversations.

CrazyEngineers powered by Jatra Community Platform

  • safwan

    safwan

    @safwan-NH7W5Y Sep 11, 2009

    Moderators I think this post should be in CS& IT forum..??
  • gaurav.bhorkar

    gaurav.bhorkar

    @gauravbhorkar-Pf9kZD Sep 12, 2009

    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

    @agru-00oqkR Sep 12, 2009

    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 .