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

Here is a neat trick for checking whether two strings are equal

0 Answers  


Write a C/C++ program that connects to a MySQL server and checks intrusion attempts every 5 minutes. If an intrusion attempt is detected beep the internal speaker to alert the administrator. A high number of aborted connects to MySQL at a point in time may be used as a basis of an intrusion.

2 Answers   Drona Solutions, Infosys, Vodafone, Webyog,


main() { int a=0; if(a=0) printf("Ramco Systems\n"); printf("India\n"); } output?

7 Answers   Ramco,


Explain the priority queues?

0 Answers  


What is a memory leak? How to avoid it?

1 Answers  


We can draw a box in cprogram by using only one printf();& without using graphic.h header file?

4 Answers   NIIT,


main() { int i,n=010; int sum=0; for(i=1;i<=n;i++) {s=s+i; } printf("%d",&s); getch(); }

6 Answers  


Determine if a number is a power of 2 at O(1).

2 Answers  


difference between spiral and waterfall model

1 Answers  


How can you convert integers to binary or hexadecimal?

0 Answers  


main() { int a=4,b=2; a=b<<a + b>>2; printf("%d", a); }

11 Answers   HCL, Vector, Vector India, Vector Solutions, Wipro,


What is diffrance between declaration and defination of a variable or function

4 Answers  


Categories