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

a<<1 is equivalent to a) multiplying by 2 b) dividing by 2 c) adding 2 d)none of the above

2 Answers   HCL, NBN,


what is compiler

7 Answers  


What is variable declaration and definition in c?

0 Answers  


What is d'n in c?

0 Answers  


Explain about the functions strcat() and strcmp()?

0 Answers  


where does malloc() function get the memory?

1 Answers  


I need a help with a program: Write a C program that uses data input in determining the whole of points A and a whole of circles B. Find two points in A so that the line which passes through them, cut through the maximum number of circles.

0 Answers   TCS,


Why do we use static in c?

0 Answers  


how to print 2-D array using a single for loop?

2 Answers   Mind Tree, TCS, Value Labs,


What is %s and %d in c?

0 Answers  


Explain the difference between exit() and _exit() function?

0 Answers  


Juxtapose the use of override with new. What is shadowing?

1 Answers  


Categories