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

printf("%d",(printf("Hello")); What it returns?

32 Answers   TCS,


What is extern keyword in c?

0 Answers  


simple c program for 12345 convert 54321 with out using string

7 Answers   TCS,


1.write a program to merge the arrays 2.write efficient code for extracting unique elements from a sorted list of array?

3 Answers   Qualcomm,


int main() { int days; printf("enter days you are late"); scanf("%d",days); if (days<=5) printf("5o paisa fine"); if (days<=10&&days>=6) printf("1rs fine"); if(days>10) printf("10 rs fine"); if(days=30) printf("membership cancelled"); return 0; } tell me whats wrong in this program? is it right?

2 Answers  






How can I call fortran?

0 Answers  


What is substring in c?

0 Answers  


Why array starts with index 0

2 Answers  


Which control loop is recommended if you have to execute set of statements for fixed number of times?

0 Answers  


1. Write a C program to count the number of occurrence of a specific word in the given strings. (for e.g. Find how many times the word “live” comes in the sentence “Dream as if you’ll live forever, live as if you’ll die today ”)

12 Answers   Eskom, TCS,


Explain the process of converting a Tree into a Binary Tree.

0 Answers   Ignou,


what is reason of your company position's in india no. 1.

0 Answers   Accenture, TCS,


Categories