what will be the output:
main(){char ch;int a=10;printf("%d",ch);}
Answer Posted / lnk
In the above coding ...
there is a char "ch " assigned with out a value
and a int" a " assigned with a value ...
and it compiles to print a interger (%d) ...
but tries to read a int value fronm ch (which does not
match the data type ) so it gives garbage value .with
compile time warning !
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Why is void main used?
List the difference between a "copy constructor" and a "assignment operator"?
Explain what is a static function?
what is the basis for selection of arrays or pointers as data structure in a program
What is difference between structure and union in c programming?
What is indirection? How many levels of pointers can you have?
What is the difference between struct and union in C?
How #define works?
How can you determine the maximum value that a numeric variable can hold?
Which operators cannot be overloaded a) Sizeof b) .* c) :: d) all of the above
Lists the benefits of c programming language?
Do you have any idea how to compare array with pointer in c?
Write a program to print all permutations of a given string.
What are the parts of c program?
How to explain the final year project as a fresher please answer with sample project