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

Can anyone tell what is stack overflow? what precaution we should take?

1 Answers  


How can I increase the allowable number of simultaneously open files?

1 Answers   ABC,


How do you search data in a data file using random access method?

0 Answers  


What are directives in c?

0 Answers  


write a program to insert an element at the specified position in the given array in c language

5 Answers   Appin, IBM,






How can I access an I o board directly?

0 Answers  


What is nested structure with example?

0 Answers  


In C, What is the #line used for?

2 Answers  


Explain what is the general form of a c program?

0 Answers  


main() { char *p1="Name"; char *p2; p2=(char *)malloc(20); while(*p2++=*p1++); printf("%s\n",p2); }

4 Answers   CitiGroup,


the number 138 is called well ordered number because the three digits in the number (1,3,8) increase from left to right (1<3<8). the number 365 is not well ordered coz 6 is larger than 5. write a program that wull find and display all possible three digit well ordered numbers. sample: 123,124,125,126,127,128,129,134 ,135,136,137,138,139,145,146,147 148 149,156.......789

5 Answers  


I need to take a sentence from input and sort the words alphabetically using the C programming language. Note: This is C not C++. qsort and strtok not allowed

4 Answers   Aspire,


Categories