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 / ranjani

it will give a warning " that a is assigned a value that is
never used"......

Is This Answer Correct ?    0 Yes 1 No

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

Answer / manju

The correct and verified answer is 8.

Is This Answer Correct ?    0 Yes 2 No

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

Answer / a.dinesh kumar

error will be occur because a is not in use in output
statement

Is This Answer Correct ?    2 Yes 6 No

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

Answer / siraj

0

Is This Answer Correct ?    1 Yes 8 No

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

Answer / reddy

ans ch=0
if we print a it wil be 10

Is This Answer Correct ?    2 Yes 11 No

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

Answer / ruth

it will print 64

Is This Answer Correct ?    0 Yes 13 No

Post New Answer

More C Interview Questions

What are the different types of pointers used in c language?

0 Answers  


Explain logical errors? Compare with syntax errors.

0 Answers  


What is hungarian notation? Is it worthwhile?

0 Answers  


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

2 Answers  


What is null pointer constant?

0 Answers  






What does stand for?

0 Answers  


How would you find a cycle in a linked list?

3 Answers   NSN,


WAP to accept first name,middle name & last name of a student display its initials?

5 Answers   AITH, NIIT,


What is the purpose of clrscr () printf () and getch ()?

0 Answers  


What is include directive in c?

0 Answers  


Which of the following is not a valid declaration for main ()? 1) int main() 2) int main(int argc, char *argv[]) 3) They both work

2 Answers  


Why is c called a structured programming language?

0 Answers  


Categories