main()
{
clrscr();
}
clrscr();
Answers were Sorted based on User's Feedback
Answer / surenda pal singh chouhan
No output/error
Explanation:
The first clrscr() occurs inside a function. So it becomes
a function call. In the second clrscr(); is a function
declaration (because it is not inside any function).
| Is This Answer Correct ? | 17 Yes | 0 No |
Answer / revathi
the clrscr()inside the main() just clears the screen.
where the clrscr() outside the main() won't do any action.
it just act as a declaration.
| Is This Answer Correct ? | 8 Yes | 3 No |
Gud question.. have to try this out..
m not sure about the answer..
because clrscr() is an inbuilt function.
so the clrscr() in the main will jump to the function body
which is defined in the header files..
for the second clrscr()...
i donno...
have to check it out.. :-(
| Is This Answer Correct ? | 1 Yes | 4 No |
Differentiate between a for loop and a while loop? What are it uses?
what will be the output: main(){char ch;int a=10;printf("%d",ch);}
36 Answers Accenture, TCS, Wipro,
Hi can anyone tell what is a start up code?
When is a “switch” statement preferable over an “if” statement?
Explain how does flowchart help in writing a program?
How are 16- and 32-bit numbers stored?
what is use of loop?
What is scope and lifetime of a variable in c?
write a c programming using command line argument,demonstrate set operation(eg;union,intersection,difference) example output is c:>setop 12 34 45 1 union 34 42 66 c:>setop 12 34 1 42 66 c:>setop 12 34 diff 12 56 67 78 setop 12 34
What is the scope of an external variable in c?
DIFFERNCE BETWEEN THE C++ AND C LANGUAGE?
Explain how can I make sure that my program is the only one accessing a file?