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 the use of a conditional inclusion statement in C?
Array is an lvalue or not?
how to find anagram without using string functions using only loops in c programming
Explain what does a function declared as pascal do differently?
What is meant by initialization and how we initialize a variable?
What is the use of linkage in c language?
What are the types of type specifiers?
Is c# a good language?
Who is the main contributor in designing the c language after dennis ritchie?
What is type qualifiers?
What does %c do in c?
Describe how arrays can be passed to a user defined function
Ow can I insert or delete a line (or record) in the middle of a file?
Why is c used in embedded systems?
Explain the properties of union. What is the size of a union variable