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
When is the “void” keyword used in a function?
Q.1 write aprogram to stack using linklist o insert 40 items? Q.2 write a program to implement circular queue with help of linklist?
What is else if ladder?
What are the key features in c programming language?
What is a static variable in c?
What is use of null pointer in c?
Explain how do you search data in a data file using random access method?
Explain argument and its types.
Explain what is the advantage of a random access file?
Why main function is special give two reasons?
Why array is used in c?
What is malloc and calloc?
main() { int i = 10; printf(" %d %d %d ", ++i, i++, ++i); }
Explain the priority queues?
Explain is it better to bitshift a value than to multiply by 2?