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 null in c?

0 Answers  


Write a c program to enter a string of paragraph and replacing a particular word which is repeated in the paragraph by another word?

2 Answers   ME, Synfusion, Wipro,


What is static memory allocation?

0 Answers  


hi folks i m approching for h1 b interview on monday 8th of august at montreal and i m having little problem in my approval notice abt my bithdate my employer has made a mistake while applying it is 12th january and istead of that he had done 18 the of january do any body have any solution for that if yes how can i prove my visa officer abt my real birthdate it urgent please let me know guys thaks dipesh patel

0 Answers  


inline function is there in c language?

4 Answers  






void main() { for(; 0 ;) ... { printf("hello"); ... } getch(); }

1 Answers  


What is a far pointer in c?

0 Answers  


How can I read a directory in a c program?

1 Answers   CSC,


write a program in C to swap two variables

7 Answers   Attrabyte, Marlabs,


given post order,in order construct the corresponding binary tree

0 Answers   S-Cube, Wipro,


explain what is an endless loop?

0 Answers  


#include<stdio.h> #include<conio.h> void main() { int m=0111,n=20; printf("%d%d\n",m,n); getch(); }

1 Answers  


Categories