Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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 difference between #include<> and #include”…”?

5 Answers  


What is an lvalue?

0 Answers  


what is the need for main function in c?

5 Answers  


how to return 1000 variables from functio9n in c?plz give me code also

6 Answers  


which one is better structure or union?(other than the space occupied )

2 Answers  


what is the output of the following program? main() { int c[]={2,8,3,4,4,6,7,5}; int j,*p=c,*q=c; for(j=0;j<5;j++) { printf("%d",*c); ++q; } for(j=0;j<5;j++) { printf("%d",*p); ++p; } }

4 Answers  


Explain the priority queues?

0 Answers  


write a code for large nos multilication (upto 200 digits)

2 Answers   Persistent,


what is the hardware model of CFG( context free grammar)

0 Answers   Microsoft,


What is the advantage of using #define to declare a constant?

0 Answers   Agilent, ZS Associates,


GIVEN A FLOATING POINT NUMBER HOW IS IT ACTUALLY STORED IN MEMORY ? CAN ANYONE EXPLAIN?? THE 32 BIT REPRESENTATION OF A FLOATING POINT NUMBER ALLOTS: 1 BIT-SIGN 8 BITS-EXPONENT 23 BITS-MANTISSA

0 Answers  


Explain what is a stream?

0 Answers  


Categories