char ch=10;printf("%d",ch);what is the output

Answer Posted / jj

answer is 49,a character constant can be one character
so ch=10----> here 1 is taken as character,in print
statement it is conv to ascii

Is This Answer Correct ?    0 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are examples of structures?

597


Write the Program to reverse a string using pointers.

615


What is the difference between array and structure in c?

571


What is a MAC Address?

626


What is union in c?

635






What does the && operator do in a program code?

696


What is the use of typedef in structure in c?

544


What are the different types of data structures in c?

604


Explain what are preprocessor directives?

627


What is the newline escape sequence?

589


How can I rethow can I return a sequence of random numbers which dont repeat at all?

704


Where static variables are stored in memory in c?

521


write a program to find the given number is prime or not

3843


What is action and transformation in spark?

594


How to implement a packet in C

2395