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 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a C Program That Will Count The Number Of Even And Odd Integers In A Set using while loop

1714


What is void c?

566


What is difference between scanf and gets?

610


What does. int *x[](); means ?

636


number of times a digit is present in a number

1543






What is a function simple definition?

618


If a five digit number is input through the keyboard, write a program to print a new number by adding one to each of its digits.For example if the number that is input is 12391 then the output should be displayed as 23402

3247


What is a sequential access file?

648


What is the symbol indicated the c-preprocessor?

696


What is the role of this pointer?

549


Write a program in c to replace any vowel in a string with z?

693


How can I find out how much free space is available on disk?

629


Can we compile a program without main() function?

634


Explain the difference between null pointer and void pointer.

669


Does free set pointer to null?

563