why clrscr() is invoked after variable declaration???? ...
question regarding the declaration of clrscr()
Collapse
X
-
Tags: None
-
-
Generally while writing C programs people used to do that, the reason for it in some compilers like Turbo C, the output of the previous program is still there on the output stream to clear those they will use clrscr().For y they using it after after variable declaration, in some OS u have to declare the variables at the beginning of the scope, otherwise it will give some warnings, that's they normally use it after declaring all the possible variables, even u can use the function at the beginning of the scope as well, it ll work with some warnings.Comment
-
Because clrscr()is a library function which is used to clear the garbages and output from console.Comment
Comment