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 / swaroop
clrscr()
should be after the declaration of variables
| Is This Answer Correct ? | 14 Yes | 1 No |
Post New Answer View All Answers
What is an endless loop?
Is it possible to initialize a variable at the time it was declared?
What is the difference between the = symbol and == symbol?
Which header file is used for clrscr?
How many levels of pointers can you have?
Why do we use int main?
What is s or c?
What are the characteristics of arrays in c?
i want to switch my career from quailty assurance engineering to development kindly guide me from which programming language its better for me to start plz refer some courses or certifications too i have an experience of 1.5 yrs in QA field.Kindly guide me
what is the basis for selection of arrays or pointers as data structure in a program
Explain how do you view the path?
why arguments can generally be passed to functions a) sending the values of the arguments b) sending the addresses of the arguments c) a & b d) none of the above
why return type of main is not necessary in linux
Write a progarm to find the length of string using switch case?
What is static volatile in c?