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

How do I swap bytes?

0 Answers  


What is the best way to store flag values in a program?

0 Answers  


a single linked list consists of nodes a to z .print the nodes in reverse order from z to a using recursion

0 Answers   Mindteck,


How to implement call back functions ?

3 Answers   HP,


main() { int i,j,A; for(A=-1;A<=1;A++) prinf("%d\t",!!A); }

6 Answers  






what is available in C language but not in C++?

10 Answers   CTS, TCS,


What is bubble sort in c?

0 Answers  


How to print all the 26 alphabets in this order in C. AbCdEfGh..... it should print dynamically from a to z and do not print this using pgm like this print("Ab......"); Use loops or anything to print all alphabets

2 Answers   Hexaware,


Does c have function or method?

0 Answers  


What are static variables in c?

0 Answers  


What is the difference between #include <header file> and #include “header file”?

0 Answers  


which header file contains main() function in c?

17 Answers   Google, HCL, TCS,


Categories