Having different outputs of the same program
Title
Question
<span style="color: rgb(0, 0, 0); font-family: sans-serif; font-size: 12.8px;">hello, there I'm learning your course c and c++ in windows environment. I had repeated the program of tokens but came across a problem when I inserted "clrscr" command. when i put clr above the initialization it showed me four errors but when i put it below all the initialization the program runs but the value of float and double const was zero. could u please help me out this what was the reason of problem?.</span>
<span style="color: rgb(0, 0, 0); font-family: sans-serif; font-size: 12.8px;">Thanks!</span>
<span style="color: rgb(0, 0, 0); font-family: sans-serif; font-size: 12.8px;">Thanks!</span>
C-and-Cpp Tokens 01-02 min 10-20 sec
Answers:
Function "clrscr" (works in Turbo C++ compiler only).
While using the GCC compiler, use system function "clear" to execute the clear command.
To do so, simply type "clear" on the prompt and press Enter or press the "Windows" key and "L" key simultaneously on your keyboard.
Login to add comment