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 does dm mean sexually?
the real constant in c can be expressed in which of the following forms a) fractional form only b) exponential form only c) ascii form only d) both a and b
What is a macro, and explain how do you use it?
What is extern variable in c with example?
What is static and auto variables in c?
What is 'bus error'?
What is static function in c?
Describe the order of precedence with regards to operators in C.
What is the use of typedef in structure in c?
Explain how can I pad a string to a known length?
Is boolean a datatype in c?
Tell me when is a void pointer used?
What is else if ladder?
What are multidimensional arrays?
main() { inta=10,b=20; a>=5?b=100:b=200; printf("%d ",b); }