main()
{
clrscr();
}
clrscr();

Answers were Sorted based on User's Feedback



main() { clrscr(); } clrscr(); ..

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

main() { clrscr(); } clrscr(); ..

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

main() { clrscr(); } clrscr(); ..

Answer / arpita

lines compiled- 4
warnings-1
errors-1

Is This Answer Correct ?    2 Yes 2 No

main() { clrscr(); } clrscr(); ..

Answer / skjha

One error.

Type mismatch occur.

Is This Answer Correct ?    1 Yes 1 No

main() { clrscr(); } clrscr(); ..

Answer / ishrat ali

type mismatch occur

Is This Answer Correct ?    0 Yes 0 No

main() { clrscr(); } clrscr(); ..

Answer / shruti

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

Post New Answer

More C Interview Questions

What is a constant?

0 Answers  


What is file in c language?

0 Answers  


The program will first compute the tax you owe based on your income. User is prompted to enter income. Program will compute the total amount of tax owed based on the following: Income Tax 0 - $45,000 = 0.15 x income $45,001 - $90,000 = 6750 + 0.20 x (income – 45000) $90,001 - $140,000 = 15750 + 0.26 x (income – 90000) $140,001 - $200,000 = 28750 + 0.29 x (income – 140000) Greater than $200,000 = 46150 + 0.33 x (income – 200000) Dollar amounts should be in dollars and cents (float point numbers with two decimals shown). Tax is displayed on the screen.

0 Answers   Microsoft,


In c programming language, how many parameters can be passed to a function ?

0 Answers  


What does & mean in scanf?

0 Answers  






Can we write a program without main() function?

9 Answers  


O,T,T,F,F,S,S,E,N,?,?,?,T,F,F,S,S,E,N

9 Answers   ADP,


int zap(int n) { if(n<=1)then zap=1; else zap=zap(n-3)+zap(n-1); } then the call zap(6) gives the values of zap [a] 8 [b] 9 [c] 6 [d] 12 [e] 15

10 Answers   Wipro,


Explain what is a 'locale'?

0 Answers  


What is a pointer on a pointer in c programming language?

0 Answers  


Explain what is the benefit of using an enum rather than a #define constant?

0 Answers  


How can I run c program?

0 Answers  


Categories