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


Please Help Members By Posting Answers For Below Questions

When is the “void” keyword used in a function?

840


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?

1601


What is else if ladder?

611


What are the key features in c programming language?

618


What is a static variable in c?

670






What is use of null pointer in c?

572


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

699


Explain argument and its types.

607


Explain what is the advantage of a random access file?

667


Why main function is special give two reasons?

951


Why array is used in c?

553


What is malloc and calloc?

576


main() { int i = 10; printf(" %d %d %d ", ++i, i++, ++i); }

636


Explain the priority queues?

627


Explain is it better to bitshift a value than to multiply by 2?

719