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...


what will be the output:
main(){char ch;int a=10;printf("%d",ch);}

Answers were Sorted based on User's Feedback



what will be the output: main(){char ch;int a=10;printf("%d",ch);}..

Answer / kanmani

I think this program produce some garbage value.

Is This Answer Correct ?    0 Yes 0 No

what will be the output: main(){char ch;int a=10;printf("%d",ch);}..

Answer / vikram

output will be any garbage value since ch is not assigned
any value

Is This Answer Correct ?    0 Yes 0 No

what will be the output: main(){char ch;int a=10;printf("%d",ch);}..

Answer / muthu

Garbage value....

Is This Answer Correct ?    0 Yes 0 No

what will be the output: main(){char ch;int a=10;printf("%d",ch);}..

Answer / mishra

it will give garbage value as output

Is This Answer Correct ?    0 Yes 0 No

what will be the output: main(){char ch;int a=10;printf("%d",ch);}..

Answer / thirupathi reddy

it doesn't give error
it depends up on compiler u use. but gives some value

Is This Answer Correct ?    0 Yes 0 No

what will be the output: main(){char ch;int a=10;printf("%d",ch);}..

Answer / sree

output is garbage value

Is This Answer Correct ?    0 Yes 0 No

what will be the output: main(){char ch;int a=10;printf("%d",ch);}..

Answer / akhila

result is 0.

Is This Answer Correct ?    0 Yes 0 No

what will be the output: main(){char ch;int a=10;printf("%d",ch);}..

Answer / guest

junk character

Is This Answer Correct ?    0 Yes 0 No

what will be the output: main(){char ch;int a=10;printf("%d",ch);}..

Answer / p.thriveni

it will giv the warning as 'a' is assigned a avalue that
is never be used.

Is This Answer Correct ?    0 Yes 0 No

what will be the output: main(){char ch;int a=10;printf("%d",ch);}..

Answer / sabari

error

Is This Answer Correct ?    1 Yes 2 No

Post New Answer

More C Interview Questions

Explain what is the benefit of using const for declaring constants?

0 Answers  


What are the different pointer models in c?

4 Answers  


Which of the following is not an infinite loop ? a.while(1){ .... } b.for(;;){ ... } c.x=0; do{ /*x unaltered within theloop*/ ... }while(x==0); d.# define TRUE 0 ... while(TRUE){ .... }

7 Answers   TCS,


Where define directive used?

0 Answers  


how to create c progarm without void main()?

1 Answers   NIIT,


Are bit fields portable?

0 Answers   EXL,


Give a fast way to multiply a number by 7

15 Answers   Accenture, Aricent, Microsoft,


Explain how can I write functions that take a variable number of arguments?

0 Answers  


what are the advantages & disadvantages of unions?

2 Answers  


What are qualifiers and modifiers c?

0 Answers  


How many keywords are there in c?

0 Answers  


praagnovation

0 Answers  


Categories