what will be the output:
main(){char ch;int a=10;printf("%d",ch);}
Answer Posted / sirajuddin
variable ch is of character type and nothing is assigned
to it where as 'a' is of interger type.
In the printf statement we are placing variable 'ch' along
with %d which will display a garbage value.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is selection sort in c?
Explain what is wrong with this statement? Myname = ?robin?;
Write a program to print factorial of given number using recursion?
Why c is called procedure oriented language?
Explain function?
How can type-insensitive macros be created?
What is an identifier?
How can you call a function, given its name as a string?
What is void main ()?
What is return in c programming?
please give me some tips for the placement in the TCS.
Do you know the difference between malloc() and calloc() function?
What's the right way to use errno?
What is the difference between text and binary modes?
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.