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

Answers were Sorted based on User's Feedback



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

Answer / 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 8 No

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

Answer / 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

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

Answer / kalpana.y


There will be no output

because, in printf statement it is declared in %d
%d is integer variable
%s should be declared

Is This Answer Correct ?    0 Yes 10 No

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

Answer / 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

More C Interview Questions

What is the size of structure in c?

0 Answers  


If 4 digits number is input through the keyboard, Write a program to calculate sum of its 1st & 4th digit.

12 Answers   Google,


What are the types of macro formats?

0 Answers  


#include<stdio.h> void main() { int a [5]; for (i=0; i<=4; i++) printf(ā€œ%dā€ ,a[i]); }

8 Answers  


What is the purpose of the preprocessor directive error?

0 Answers  






How can I increase the allowable number of simultaneously open files?

1 Answers   ABC,


simple program of graphics and their output display

0 Answers   Elysium,


Define recursion in c.

0 Answers  


How do we print only part of a string in c?

0 Answers  


why programming language C is still used in operating system's kernel??

1 Answers   Wipro,


Which weighs more, a gram of feathers or a gram of gold?

2 Answers  


What is difference between && and & in c?

0 Answers  


Categories