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 |
What is scope rule of function in c?
What will happen when freeing memory twice
write a program to display the numbers in the following format 4 4 3 3 3 3 2 2 2 2 2 2 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 2 2 2 2 2 3 3 3 4
what is the difference between #include<stdio.h> and #include "stdio.h" ?
if (i = 0)printf ("True"); elseprintf("False"); Under what conditions will the above print out the string "True" a) Never b) Always c) When the value of i is 0 d) all of the above
4.weight conversion: Write a program that will read weight in pounds and convert it into grams.print both the original weight and the converted value.There are 454 grams in a pound.design and carry out a test plan for this program.
Why c is a procedural language?
How can I call system when parameters (filenames, etc.) Of the executed command arent known until run time?
How would you obtain the current time and difference between two times?
What does 1f stand for?
write the program to find multiplication of 2-D matrix??????????
Which of the Following is not defined in string.h? A)strspn() B)strerror() C)memchr() D)strod()