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
How can I trap or ignore keyboard interrupts like control-c?
The program will first compute the tax you owe based on your income. User is prompted to enter income. Program will compute the total amount of tax owed based on the following: Income Tax 0 - $45,000 = 0.15 x income $45,001 - $90,000 = 6750 + 0.20 x (income – 45000) $90,001 - $140,000 = 15750 + 0.26 x (income – 90000) $140,001 - $200,000 = 28750 + 0.29 x (income – 140000) Greater than $200,000 = 46150 + 0.33 x (income – 200000) Dollar amounts should be in dollars and cents (float point numbers with two decimals shown). Tax is displayed on the screen.
What does the && operator do in a program code?
What are the types of data types and explain?
what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;
Where local variables are stored in c?
Can static variables be declared in a header file?
given post order,in order construct the corresponding binary tree
What is the benefit of using an enum rather than a #define constant?
What is a nested loop?
how can f be used for both float and double arguments in printf? Are not they different types?
What are shell structures used for?
What type of function is main ()?
What language is c written?
Can we access array using pointer in c language?