when i declare as:
void main()
{
clrscr();
int a=10;
printf("%d",a)
}
my problem that why generate a error in above programs.
please tell me answer seriously .
Answer Posted / pushpendra chauhan
the clear screen function clrscr() is not allowed before declaration of the variables in c....but if you will save your
program with .cpp extension then it will work ....bcoz it is allowed in c++.and you also dint put semicolon ; after printf statement...
| Is This Answer Correct ? | 7 Yes | 2 No |
Post New Answer View All Answers
Define and explain about ! Operator?
What is file in c language?
Is main is a keyword in c?
What does d mean?
Describe the header file and its usage in c programming?
Write a factorial program using C.
What are the advantages of c preprocessor?
Why is c so important?
Is int a keyword in c?
What is the process to create increment and decrement stamen in c?
How does free() know explain how much memory to release?
Whats s or c mean?
how can i access hard disk address(physical address)? are we access hard disk by using far,near or huge pointer? if yes then please explain.....
When is a “switch” statement preferable over an “if” statement?
What is a lvalue