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


Please Help Members By Posting Answers For Below Questions

how can I convert a string to a number?

597


Explain how can I manipulate strings of multibyte characters?

784


What is identifier in c?

545


What are the three constants used in c?

546


In c programming, explain how do you insert quote characters (? And ?) Into the output screen?

764






What is void pointers in c?

590


why wipro wase

1831


What is structure data type in c?

572


Program will then find the largest of three numbers using nested if-else statements. User is prompted to enter three numbers. Program will find the largest number and display it on the screen. All three numbers entered by the user are also displayed. If user enters 21, 33, and 5, the output should be as follows: You entered: 21, 33 and 5. The largest number is 33.

1014


Is javascript written in c?

584


What is the difference between break and continue?

606


Explain what is the difference between functions abs() and fabs()?

621


What are volatile variables in c?

521


How to write a code for implementing my own printf() and scanf().... Please hep me in this... I need a guidance... Can you give an coding for c... Please also explain about the header files used other than #include...

4904


What is the value of uninitialized variable in c?

576