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 / sandhiya.g

declaration should made before the clear screen statement

Is This Answer Correct ?    6 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the two forms of #include directive?

634


in ‘C’ language for Matrix Multiplication fails” Introspect the causes for its failure and write down the possible reasons for its failure.

7385


Device an algorithm for weiler-atherton polygon clipping, where the clipping window can be any specified polygon

5458


Explain how do you declare an array that will hold more than 64kb of data?

884


Explain how do you search data in a data file using random access method?

687






Explain can the sizeof operator be used to tell the size of an array passed to a function?

585


Write the program with at least two functions to solve the following problem. The members of the board of a small university are considering voting for a pay increase for their 10 faculty members. They are considering a pay increase of 8%. Write a program that will prompt for and accept the current salary for each of the faculty members, then calculate and display their individual pay increases. At the end of the program, print the total faculty payroll before and after the pay increase, and the total pay increase involved.

2642


What is the newline escape sequence?

576


What is the package for freshers(Non IIT) in amazon(hyderabad). And what is the same for those who are a contract employee.

3722


Tell us bitwise shift operators?

590


why to assign a pointer to null sometimes??how can a pointer we declare get assigned with a garbage value by default???

1508


Add Two Numbers Without Using the Addition Operator

349


write a program to display all prime numbers

1448


which of the following is not a character constant a) 'thank you' b) 'enter values of p, n ,r' c) '23.56E-o3' d) all of the above

1405


What is string function in c?

529