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 the purpose of scanf() and printf() functions?
Is main is a keyword in c?
How was c created?
What is the use of putchar function?
There is a practice in coding to keep some code blocks in comment symbols than delete it when debugging. How this affect when debugging?
What does %d do?
What is function prototype?
write a c program to find the sum of five entered numbers using an array named number
What is the use of static variable in c?
What is a double c?
Given a valid 24 hour format time find the combination of the value and write a program ,do not hard the value and if any other inputs provided should work with the logic implemented Input: 11:30 Output: 13:10 Input: 18:25 Output: 21:58
How do you redirect a standard stream?
What are keywords c?
In this assignment you are asked to write a multithreaded program to find the duplicates in an array of 10 million integers. The integers are between -5000,000 to 5000,000 and are generated randomly. Use 10 threads, each thread works on 1000,000 integers. Compare the time needed to accomplish the task with single thread of execution program. Do not include the time to fill the array with integers in the execution time.
What are the uses of a pointer?