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 a constant?
What is file in c language?
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.
In c programming language, how many parameters can be passed to a function ?
What does & mean in scanf?
Can we write a program without main() function?
O,T,T,F,F,S,S,E,N,?,?,?,T,F,F,S,S,E,N
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
Explain what is a 'locale'?
What is a pointer on a pointer in c programming language?
Explain what is the benefit of using an enum rather than a #define constant?
How can I run c program?